Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17856

HAProxy remembering old nonexistent backend

$
0
0

This is so bizzare. I've got an HAProxy dedicated VM. I had a backend setup previously with multiple servers and have since removed it from the configuration entirely.

I added a new backend, reloaded HAProxy and found that it was still requesting the old servers. When I tail the log I see that it randomly sends the requests to the correct backend, and randomly sends the requests to the old non-existent backend.

I thought that was weird so I did a restart instead of a reload. Same thing. Okay.... Odd. I went ahead and did service haproxy stop, service haproxy start. Same thing.

I checked the the init script in /etc/init.d/haproxy and it's reading the config file that I'm editing: cfgfile=/etc/haproxy/haproxy.cfg

When I setup ACL's to deny traffic with a 403, that works.

So I know that the configuration file that I'm reading/editing is the one that HAProxy is using, but HAProxy has cached the old configuration and randomly reads it from somewhere or something. I'm baffled. Does anyone have any advice?

submitted by /u/proxideaux
[link] [comments]

Viewing all articles
Browse latest Browse all 17856