siegerc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. # Updated by Siege 3.0.5, August-27-2014
  2. # Copyright 2000-2013 by Jeffrey Fulmer, et al.
  3. #
  4. # Siege configuration file -- edit as necessary
  5. # For more information about configuring and running
  6. # this program, visit: http://www.joedog.org/
  7. #
  8. # Variable declarations. You can set variables here
  9. # for use in the directives below. Example:
  10. # PROXY = proxy.joedog.org
  11. # Reference variables inside ${} or $(), example:
  12. # proxy-host = ${PROXY}
  13. # You can also reference ENVIRONMENT variables without
  14. # actually declaring them, example:
  15. # logfile = $(HOME)/var/siege.log
  16. #
  17. # Verbose mode
  18. #
  19. # Signify verbose mode, true turns on verbose output
  20. # ex: verbose = true|false
  21. #
  22. verbose = false
  23. #
  24. # Quiet mode
  25. #
  26. # When true, this turns off verbose and standard output.
  27. # You'll still see the opening announcement and the final
  28. # stats if you're running a siege but -g/--get will be
  29. # extremely quiet. This was added primarily for scripting
  30. # ex: quiet = true|false
  31. #
  32. quiet = true
  33. #
  34. # Get method - select an HTTP method to use when siege
  35. # is set to get mode, siege -g/--get URL. You may select
  36. # GET or HEAD. The default method is HEAD. As expected
  37. # HEAD prints just the headers and GET prints the entire
  38. # page.
  39. #
  40. # NOTE: This only applies when siege is invoked with
  41. # -g/--get. All other requests methods will be made
  42. # on the basis of the URL.
  43. #
  44. # example: gmethod = GET
  45. #
  46. gmethod = HEAD
  47. #
  48. # CSV Verbose format: with this option, you can choose
  49. # to format verbose output in traditional siege format
  50. # or comma separated format. The latter will allow you
  51. # to redirect output to a file for import into a spread
  52. # sheet, i.e., siege > file.csv
  53. # ex: csv = true|false (default false)
  54. #
  55. # csv = true
  56. #
  57. # Timestamp format: with this option, you can choose to
  58. # print a timestamp each line of output
  59. # example: timestamp = true|false (default false)
  60. #
  61. # sample: [Sat, 2010-11-20 10:39:13] HTTP/1.1 200 0.12 secs: 4003 bytes ==> /
  62. #
  63. # timestamp = true
  64. #
  65. # Full URL verbose format: By default siege displays
  66. # the URL path and not the full URL. With this option,
  67. # you # can instruct siege to show the complete URL.
  68. # ex: fullurl = true|false (default false)
  69. #
  70. # fullurl = true
  71. #
  72. # Display id: in verbose mode, display the siege user
  73. # id associated with the HTTP transaction information
  74. # ex: display-id = true|false
  75. #
  76. # display-id =
  77. #
  78. # Show logfile location. By default, siege displays the
  79. # logfile location at the end of every run when logging
  80. # You can turn this message off with this directive.
  81. # ex: show-logfile = false
  82. #
  83. show-logfile = true
  84. #
  85. # Default logging status, true turns logging on.
  86. # ex: logging = true|false
  87. #
  88. logging = false
  89. #
  90. # Logfile, the default siege logfile is $PREFIX/var/siege.log
  91. # This directive allows you to choose an alternative log file.
  92. # Environment variables may be used as shown in the examples:
  93. # ex: logfile = /home/jeff/var/log/siege.log
  94. # logfile = ${HOME}/var/log/siege.log
  95. # logfile = ${LOGFILE}
  96. #
  97. # logfile =
  98. #
  99. # HTTP protocol. Options HTTP/1.1 and HTTP/1.0.
  100. # Some webservers have broken implementation of the
  101. # 1.1 protocol which skews throughput evaluations.
  102. # If you notice some siege clients hanging for
  103. # extended periods of time, change this to HTTP/1.0
  104. # ex: protocol = HTTP/1.1
  105. # protocol = HTTP/1.0
  106. #
  107. protocol = HTTP/1.1
  108. #
  109. # Chunked encoding is required by HTTP/1.1 protocol
  110. # but siege allows you to turn it off as desired.
  111. #
  112. # ex: chunked = true
  113. #
  114. chunked = true
  115. #
  116. # Cache revalidation.
  117. # Siege supports cache revalidation for both ETag and
  118. # Last-modified headers. If a copy is still fresh, the
  119. # server responds with 304.
  120. # HTTP/1.1 200 0.00 secs: 2326 bytes ==> /apache_pb.gif
  121. # HTTP/1.1 304 0.00 secs: 0 bytes ==> /apache_pb.gif
  122. # HTTP/1.1 304 0.00 secs: 0 bytes ==> /apache_pb.gif
  123. #
  124. # ex: cache = true
  125. #
  126. cache = false
  127. #
  128. # Connection directive. Options "close" and "keep-alive"
  129. # Starting with release 2.57b3, siege implements persistent
  130. # connections in accordance to RFC 2068 using both chunked
  131. # encoding and content-length directives to determine the
  132. # page size. To run siege with persistent connections set
  133. # the connection directive to keep-alive. (Default close)
  134. # CAUTION: use the keep-alive directive with care.
  135. # DOUBLE CAUTION: this directive does not work well on HPUX
  136. # TRIPLE CAUTION: don't use keep-alives until further notice
  137. # ex: connection = close
  138. # connection = keep-alive
  139. #
  140. connection = keep-alive
  141. #
  142. # Default number of simulated concurrent users
  143. # ex: concurrent = 25
  144. #
  145. concurrent = 15
  146. #
  147. # Default duration of the siege. The right hand argument has
  148. # a modifier which specifies the time units, H=hours, M=minutes,
  149. # and S=seconds. If a modifier is not specified, then minutes
  150. # are assumed.
  151. # ex: time = 50M
  152. #
  153. # time =
  154. #
  155. # Repetitions. The length of siege may be specified in client
  156. # reps rather then a time duration. Instead of specifying a time
  157. # span, you can tell each siege instance to hit the server X number
  158. # of times. So if you chose 'reps = 20' and you've selected 10
  159. # concurrent users, then siege will hit the server 200 times.
  160. # ex: reps = 20
  161. #
  162. # reps =
  163. #
  164. # Default URLs file, set at configuration time, the default
  165. # file is PREFIX/etc/urls.txt. So if you configured siege
  166. # with --prefix=/usr/local then the urls.txt file is installed
  167. # int /usr/local/etc/urls.txt. Use the "file = " directive to
  168. # configure an alternative URLs file. You may use environment
  169. # variables as shown in the examples below:
  170. # ex: file = /export/home/jdfulmer/MYURLS.txt
  171. # file = $HOME/etc/urls.txt
  172. # file = $URLSFILE
  173. #
  174. # file =
  175. #
  176. # Default URL, this is a single URL that you want to test. This
  177. # is usually set at the command line with the -u option. When
  178. # used, this option overrides the urls.txt (-f FILE/--file=FILE)
  179. # option. You will HAVE to comment this out for in order to use
  180. # the urls.txt file option.
  181. #
  182. # NOTE: you may do the same thing by passing a URL to siege at
  183. # the command line: siege -c10 -r10 "www.joedog.org/"
  184. # Generally, it's a good idea to wrap a command line URL in quotes
  185. #
  186. # ex: url = https://shemp.whoohoo.com/docs/index.jsp
  187. #
  188. # url =
  189. #
  190. # Default delay value, see the siege(1) man page.
  191. # This value is used for load testing, it is not used
  192. # for benchmarking.
  193. # ex: delay = 3
  194. #
  195. delay = 1
  196. #
  197. # Connection timeout value. Set the value in seconds for
  198. # socket connection timeouts. The default value is 30 seconds.
  199. # ex: timeout = 30
  200. #
  201. # timeout =
  202. #
  203. # Session expiration: This directive allows you to delete all
  204. # cookies after you pass through the URLs. This means siege will
  205. # grab a new session with each run through its URLs. The default
  206. # value is false.
  207. # ex: expire-session = true
  208. #
  209. # expire-session =
  210. #
  211. # Cookie support: by default siege accepts cookies. This directive
  212. # is available to disable that support. Set cookies to 'false' to
  213. # refuse cookies. Set it to 'true' to accept them. The default value
  214. # is true.
  215. # ex: cookies = false
  216. #
  217. # cookies =
  218. #
  219. # Failures: This is the number of total connection failures allowed
  220. # before siege aborts. Connection failures (timeouts, socket failures,
  221. # etc.) are combined with 400 and 500 level errors in the final stats,
  222. # but those errors do not count against the abort total. If you set
  223. # this total to 10, then siege will abort after ten socket timeouts,
  224. # but it will NOT abort after ten 404s. This is designed to prevent
  225. # a run-away mess on an unattended siege. The default value is 1024
  226. # ex: failures = 50
  227. #
  228. # failures =
  229. #
  230. # Internet simulation. If true, siege clients will hit
  231. # the URLs in the urls.txt file randomly, thereby simulating
  232. # internet usage. If false, siege will run through the
  233. # urls.txt file in order from first to last and back again.
  234. # ex: internet = true
  235. #
  236. internet = false
  237. #
  238. # Default benchmarking value, If true, there is NO delay
  239. # between server requests, siege runs as fast as the web
  240. # server and the network will let it. Set this to false
  241. # for load testing.
  242. # ex: benchmark = true
  243. #
  244. benchmark = false
  245. #
  246. # Set the siege User-Agent to identify yourself at the
  247. # host, the default is: JoeDog/1.00 [en] (X11; I; Siege #.##)
  248. # But that wreaks of corporate techno speak. Feel free
  249. # to make it more interesting :-) Since Limey is recovering
  250. # from minor surgery as I write this, I'll dedicate the
  251. # example to him...
  252. #
  253. # ex: user-agent = Limey The Bulldog
  254. #
  255. # user-agent =
  256. #
  257. # Accept-encoding. This option allows you to specify
  258. # acceptable encodings returned by the server. Use this
  259. # directive to turn on compression. By default we accept
  260. # gzip compression.
  261. #
  262. # ex: accept-encoding = *
  263. # accept-encoding = gzip
  264. # accept-encoding = compress;q=0.5;gzip;q=1
  265. accept-encoding = gzip
  266. #
  267. # URL escaping was added in version 3.0.3. You may use this
  268. # directive to turn off this experimental feature. By default
  269. # this feature is active by default starting with v3.0.3
  270. #
  271. # http://www.joedog.org/jukebox.php?band=the days of new
  272. # becomes:
  273. # http://www.joedog.org/jukebox.php?band=the%20days%20of%20the%20new
  274. #
  275. # ex: url-escaping = false
  276. #
  277. url-escaping = true
  278. #
  279. # TURN OFF THAT ANNOYING SPINNER!
  280. # Siege spawns a thread and runs a spinner to entertain you
  281. # as it collects and computes its stats. If you don't like
  282. # this feature, you may turn it off here.
  283. # ex: spinner = false
  284. #
  285. spinner = true
  286. #
  287. # WWW-Authenticate login. When siege hits a webpage
  288. # that requires basic authentication, it will search its
  289. # logins for authentication which matches the specific realm
  290. # requested by the server. If it finds a match, it will send
  291. # that login information. If it fails to match the realm, it
  292. # will send the default login information. (Default is "all").
  293. # You may configure siege with several logins as long as no
  294. # two realms match. The format for logins is:
  295. # username:password[:realm] where "realm" is optional.
  296. # If you do not supply a realm, then it will default to "all"
  297. # ex: login = jdfulmer:topsecret:Admin
  298. # login = jeff:supersecret
  299. #
  300. # login =
  301. #
  302. # Login URL. This is the first URL to be hit by every siege
  303. # client. This feature was designed to allow you to login to
  304. # a server and establish a session. It will only be hit once
  305. # so if you need to hit this URL more then once, make sure it
  306. # also appears in your urls.txt file.
  307. #
  308. # ex: login-url = http://eos.haha.com/login.jsp POST name=jeff&pass=foo
  309. #
  310. # Siege versions after 2.69 support multi logins; you can configure
  311. # them with multiple login-url directives. Place each one on a separate
  312. # line. Siege loops through each login then starts again at the beginning
  313. # after it uses the last one. If you have more users than login-urls, then
  314. # siege starts reassigning ones that have already been used.
  315. #
  316. # ex: login-url = http://www.haha.com/login.php?name=homer&pass=whoohoo
  317. # login-url = http://www.haha.com/login.php?name=marge&pass=ohhomie
  318. # login-url = http://www.haha.com/login.php?name=bart&pass=eatMyShorts
  319. #
  320. # login-url =
  321. #
  322. # FTP login - This directive provides one of two ways
  323. # to login to an ftp server. You may also set credentials
  324. # in RFC-1738 format: ftp://user:pass@host.com/ink.jpg
  325. #
  326. # The format is USER:PASS:HOST separated by colon ':'
  327. # The host field is optional. If you don't set a host,
  328. # then siege will send the same user:pass to every FTP
  329. # server. You may use this directive MULTIPLE times.
  330. # Siege will store each instance in memory and send the
  331. # appropriate credentials at login time depending on the
  332. # hostname in the URL.
  333. #
  334. # ex: ftp-login: jdfulmer:whoohoo:ftp.joedog.org
  335. # ftp-login: jdfulmer:password
  336. #
  337. # ftp-login =
  338. #
  339. # FTP unique - This directive determines whether siege
  340. # will upload files with the same name (and therefore
  341. # overwrite whatever is on disk) or upload files each with a
  342. # unique name. If true, siege will rewrite the file name with
  343. # a timestamp in its name, i.e., p.jpg => p-3086060432.jpg
  344. # The default value is true.
  345. #
  346. # ex: unique = false
  347. #
  348. unique = true
  349. #
  350. # ssl-cert
  351. # This optional feature allows you to specify a path to a client
  352. # certificate. It is not neccessary to specify a certificate in
  353. # order to use https. If you don't know why you would want one,
  354. # then you probably don't need this feature. Use openssl to
  355. # generate a certificate and key with the following command:
  356. # $ openssl req -nodes -new -days 365 -newkey rsa:1024 \
  357. # -keyout key.pem -out cert.pem
  358. # Specify a path to cert.pem as follows:
  359. # ex: ssl-cert = /home/jeff/.certs/cert.pem
  360. #
  361. # ssl-cert =
  362. #
  363. # ssl-key
  364. # Use this option to specify the key you generated with the command
  365. # above. ex: ssl-key = /home/jeff/.certs/key.pem
  366. # You may actually skip this option and combine both your cert and
  367. # your key in a single file:
  368. # $ cat key.pem > client.pem
  369. # $ cat cert.pem >> client.pem
  370. # Now set the path for ssl-cert:
  371. # ex: ssl-cert = /home/jeff/.certs/client.pem
  372. # (in this scenario, you comment out ssl-key)
  373. #
  374. # ssl-key =
  375. #
  376. # ssl-timeout
  377. # This option sets a connection timeout for the ssl library
  378. # ex: ssl-timeout = 30
  379. #
  380. # ssl-timeout =
  381. #
  382. # ssl-ciphers
  383. # You can use this feature to select a specific ssl cipher
  384. # for HTTPs. To view the ones available with your library run
  385. # the following command: openssl ciphers
  386. # ex: ssl-ciphers = EXP-RC4-MD5
  387. #
  388. # ssl-ciphers =
  389. #
  390. # Proxy-Authenticate. When scout hits a proxy server which
  391. # requires username and password authentication, it will this
  392. # username and password to the server. The format is username,
  393. # password and optional realm each separated by a colon. You
  394. # may enter more than one proxy-login as long as each one has
  395. # a different realm. If you do not enter a realm, then scout
  396. # will send that login information to all proxy challenges. If
  397. # you have more than one proxy-login, then scout will attempt
  398. # to match the login to the realm.
  399. # ex: proxy-login: jeff:secret:corporate
  400. # proxy-login: jeff:whoohoo
  401. #
  402. # proxy-login =
  403. #
  404. # Redirection support. This option allows to to control
  405. # whether a Location: hint will be followed. Most users
  406. # will want to follow redirection information, but sometimes
  407. # it's desired to just get the Location information.
  408. #
  409. # ex: follow-location = false
  410. #
  411. # follow-location =
  412. # Zero-length data. siege can be configured to disregard
  413. # results in which zero bytes are read after the headers.
  414. # Alternatively, such results can be counted in the final
  415. # tally of outcomes.
  416. #
  417. # ex: zero-data-ok = false
  418. #
  419. # zero-data-ok =
  420. #
  421. # end of siegerc