Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Running Haproxy over openvpn
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Running Haproxy over openvpn

StellaEVStellaEV Member
edited October 2014 in Help

I am currently using vultr as a haproxy host, with three other VPSes as backends. Haproxy connects to the VPSes via a openvpn tunnel with almost 0 latency

11 packets transmitted, 11 received, 0% packet loss, time 10000ms

rtt min/avg/max/mdev = 0.816/1.342/4.749/1.130 ms

However, using ab to test site response time (This is just a static html page), the response times while going over openvpn are much much greater than connecting without openvpn?

Why is this happening?

---Without Openvpn---

Server Software: cloudflare-nginx

Server Hostname: [redacted]

Server Port: 80

Document Path: /

Document Length: 1156 bytes

Concurrency Level: 200

Time taken for tests: 0.430 seconds

Complete requests: 2000

Failed requests: 0

Total transferred: 3020000 bytes

HTML transferred: 2312000 bytes

Requests per second: 4653.99 [#/sec] (mean)

Time per request: 42.974 [ms] (mean)

Time per request: 0.215 [ms] (mean, across all concurrent requests)

Transfer rate: 6862.81 [Kbytes/sec] received

Connection Times (ms)

min mean[+/-sd] median max

Connect: 1 4 7.0 2 52

Processing: 9 34 13.1 33 156

Waiting: 8 33 13.0 33 156

Total: 13 38 17.0 35 197

Percentage of the requests served within a certain time (ms)

50% 35

66% 38

75% 40

80% 42

90% 51

95% 62

98% 110

99% 117

100% 197 (longest request)

---With OpenVPN---

Server Software: cloudflare-nginx

Server Hostname: [redacted]

Server Port: 80

Document Path: /

Document Length: 1156 bytes

Concurrency Level: 200

Time taken for tests: 2.707 seconds

Complete requests: 2000

Failed requests: 0

Total transferred: 3020000 bytes

HTML transferred: 2312000 bytes

Requests per second: 738.88 [#/sec] (mean)

Time per request: 270.682 [ms] (mean)

Time per request: 1.353 [ms] (mean, across all concurrent requests)

Transfer rate: 1089.55 [Kbytes/sec] received

Connection Times (ms)

min mean[+/-sd] median max

Connect: 1 3 6.5 1 46

Processing: 27 185 193.8 141 1373

Waiting: 27 185 193.8 141 1373

Total: 31 188 194.1 144 1374

Percentage of the requests served within a certain time (ms)

50% 144

66% 173

75% 200

80% 231

90% 374

95% 521

98% 1010

99% 1104

100% 1374 (longest request)

Sign In or Register to comment.