Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest v4.1.5 siege aborted due to excessive socket failure #212

Open
dylan2intel opened this issue Sep 25, 2022 · 1 comment
Open

latest v4.1.5 siege aborted due to excessive socket failure #212

dylan2intel opened this issue Sep 25, 2022 · 1 comment

Comments

@dylan2intel
Copy link

root@wie:/# siege --version
SIEGE 4.1.5

Copyright (C) 2022 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.

root@wie:/# cat ~/.siege/siege.conf |grep -v '^#' |sed '/^$/d'
verbose = false
color = on
quiet = false
json_output = false
show-logfile = true
logging = false
gmethod = HEAD
parser = false
nofollow = ad.doubleclick.net
nofollow = pagead2.googlesyndication.com
nofollow = ads.pubsqrd.com
nofollow = ib.adnxs.com
limit = 1024
protocol = HTTP/1.1
chunked = true
cache = false
connection = close
concurrent = 25
delay = 0.0
internet = false
benchmark = false
accept-encoding = gzip, deflate
url-escaping = true
unique = true

It works if I run siege on my local virtual machine
However, switch to run on a higher performance server, it failed with below message
I am running a benchmark test against wordpress site with nginx as reverse proxy and php-fpm as backend.

root@wie:/# /run_siege.sh
Disable verbose and logging...
CLIENT_SIEGE_RUN_MODE: duration
timeout -k 180s -s INT 120s siege -c 100 -t 60s -b -f /WordpressTarget.urls 2>&1
Opcode cache enabled, warm up...

begin_region_of_interest
** SIEGE 4.1.5
** Preparing 100 concurrent users for battle.
The server is now under siege...siege aborted due to excessive socket failure; you
can change the failure threshold in $HOME/.siegerc

Transactions: 848 hits
Availability: 43.92 %
Elapsed time: 3.57 secs
Data transferred: 43.62 MB
Response time: 0.18 secs
Transaction rate: 237.54 trans/sec
Throughput: 12.22 MB/sec
Concurrency: 42.64
Successful transactions: 824
Failed transactions: 1083
Longest transaction: 3.16
Shortest transaction: 0.00

end_region_of_interest
root@wie:/# grep failure ~/.siege/siege.conf

Failures: This is the number of total connection failures allowed

before siege aborts. Connection failures (timeouts, socket failures,

ex: failures = 50

failures =

Btw, I can workaround the issue with change limit and failure in ~/.siege/siege.conf

sed -i "
s|^limit = 255|limit = $CLIENT_SIEGE_CFG_LIMIT|;
s|^parser = true|parser = false|;
s|^# failures =|failures = $CLIENT_SIEGE_CFG_FAILURE|;
" "$SIEGE_CONF"

However, does the workaround make sense?

@JoeDog
Copy link
Owner

JoeDog commented Sep 25, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants