Advertisement
Guest User

siegerc

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