Welcome to Centmin Mod Community
Become a Member

Beta Branch More custom RPM builds - Siege benchmark

Discussion in 'Beta release code' started by eva2000, May 17, 2016.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    3:06 AM
    Nginx 1.13.x
    MariaDB 5.5
    Siege benchmark tool has been source compiled in Centmin Mod builds for ages and is useful tool for stress and load testing servers. Source compiles take time, so thought that it would be a good candidate for building a custom RPM package for Centmin Mod installs :)

    Using Siege 4.0.1 version as an example = siege-bench-4.0.1-1.noarch.rpm

    Contents of siege-bench-4.0.1-1.noarch.rpm
    Code (Text):
    rpm -qpl siege-bench-4.0.1-1.noarch.rpm
    /usr/local/bin/bombardment
    /usr/local/bin/siege
    /usr/local/bin/siege.config
    /usr/local/bin/siege2csv.pl
    /usr/local/etc/siegerc
    /usr/local/etc/siegerc.new
    /usr/local/etc/urls.txt
    /usr/local/share/man/man1/bombardment.1
    /usr/local/share/man/man1/siege.1
    /usr/local/share/man/man1/siege.config.1
    /usr/local/share/man/man1/siege2csv.1
    

    Installing siege-bench-4.0.1-1.noarch.rpm
    Code (Text):
    rpm -ivh siege-bench-4.0.1-1.noarch.rpm
    

    verify
    Code (Text):
    yum list siege-bench -q
    Installed Packages
    siege-bench.noarch    4.0.1-1   installed
    

    Code (Text):
    rpm -qa siege-bench
    siege-bench-4.0.1-1.noarch
    

    Change log :)
    Code (Text):
    rpm -qa --changelog siege-bench
    * Tue May 17 2016 George Liu <centminmod.com> 4.0.1-1
    - first RPM build for siege 4.0.1 for centminmod.com LEMP stack installs
    

    Installed files
    Code (Text):
    rpm -ql siege-bench            
    /usr/local/bin/bombardment
    /usr/local/bin/siege
    /usr/local/bin/siege.config
    /usr/local/bin/siege2csv.pl
    /usr/local/etc/siegerc
    /usr/local/etc/siegerc.new
    /usr/local/etc/urls.txt
    /usr/local/share/man/man1/bombardment.1
    /usr/local/share/man/man1/siege.1
    /usr/local/share/man/man1/siege.config.1
    /usr/local/share/man/man1/siege2csv.1
    

    Siege 4.0.1 help options
    Code (Text):
    siege -h
    SIEGE 4.0.1
    Usage: siege [options]
           siege [options] URL
           siege -g URL
    Options:
      -V, --version             VERSION, prints the version number.
      -h, --help                HELP, prints this section.
      -C, --config              CONFIGURATION, show the current config.
      -v, --verbose             VERBOSE, prints notification to screen.
      -q, --quiet               QUIET turns verbose off and suppresses output.
      -g, --get                 GET, pull down HTTP headers and display the
                                transaction. Great for application debugging.
      -c, --concurrent=NUM      CONCURRENT users, default is 10
      -r, --reps=NUM            REPS, number of times to run the test.
      -t, --time=NUMm           TIMED testing where "m" is modifier S, M, or H
                                ex: --time=1H, one hour test.
      -d, --delay=NUM           Time DELAY, random delay before each requst
      -b, --benchmark           BENCHMARK: no delays between requests.
      -i, --internet            INTERNET user simulation, hits URLs randomly.
      -f, --file=FILE           FILE, select a specific URLS FILE.
      -R, --rc=FILE             RC, specify an siegerc file
      -l, --log[=FILE]          LOG to FILE. If FILE is not specified, the
                                default is used: PREFIX/var/siege.log
      -m, --mark="text"         MARK, mark the log file with a string.
                                between .001 and NUM. (NOT COUNTED IN STATS)
      -H, --header="text"       Add a header to request (can be many)
      -A, --user-agent="text"   Sets User-Agent in request
      -T, --content-type="text" Sets Content-Type in request
    
    Copyright (C) 2016 by Jeffrey Fulmer, et al.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.
    

     
    • Like Like x 1
Thread Status:
Not open for further replies.