Re: Haproxy 1.7.10 constantly restarting

2018-03-12 Thread Georg Faerber
Hi Aleksey,

On 18-03-12 07:04:05, Aleksey Gordeev wrote:
> Thank you for answer. Sorry for stupid question. Found it. I forget
> about letsencrypt. it restarts when renewing certificates.

Change it so it does only restart after renewing. I guess, Most of time
it only checks, but doesn't renew.

All the best,
Georg


signature.asc
Description: Digital signature


Re: Haproxy 1.7.10 constantly restarting

2018-03-11 Thread Aleksey Gordeev
Thank you for answer. Sorry for stupid question. Found it. I forget about
letsencrypt. it restarts when renewing certificates.


Best regards, Alexey Gordeev
С уважением Гордеев А.Д.

On Mon, Mar 12, 2018 at 12:23 AM, Vincent Bernat  wrote:

>  ❦ 11 mars 2018 07:19 -0400, Aleksey Gordeev  :
>
> > I'm sorry is that question is not suitable. Please give correct channel
> to contact.
> >
> > It's started about a month ago. I have separate instances of same
> > version haproxy. One of them restarts every 2 or 3 days.
> >
> > I have only this in log
> >
> > Mar 11 06:43:21  systemd[1]: Stopping HAProxy Load Balancer...
> > Mar 11 06:43:21  haproxy-systemd-wrapper[10939]:
> haproxy-systemd-wrapper: SIGTERM -> 10942.
> > Mar 11 06:43:21  haproxy-systemd-wrapper[10939]:
> haproxy-systemd-wrapper: exit, haproxy RC=0
> > Mar 11 06:43:21  systemd[1]: Starting HAProxy Load Balancer...
> > Mar 11 06:43:21  systemd[1]: Started HAProxy Load Balancer.
> > Mar 11 06:43:21  haproxy-systemd-wrapper[19642]:
> haproxy-systemd-wrapper: executing /usr/sbin/haproxy
>
> This seems to happen because something is just restarting haproxy. Maybe
> logrotate? "rgrep haproxy /etc" may give a clue.
> --
> Write clearly - don't be too clever.
> - The Elements of Programming Style (Kernighan & Plauger)
>


Re: Haproxy 1.7.10 constantly restarting

2018-03-11 Thread Vincent Bernat
 ❦ 11 mars 2018 07:19 -0400, Aleksey Gordeev  :

> I'm sorry is that question is not suitable. Please give correct channel to 
> contact. 
>
> It's started about a month ago. I have separate instances of same
> version haproxy. One of them restarts every 2 or 3 days.
>
> I have only this in log 
>
> Mar 11 06:43:21  systemd[1]: Stopping HAProxy Load Balancer... 
> Mar 11 06:43:21  haproxy-systemd-wrapper[10939]: haproxy-systemd-wrapper: 
> SIGTERM -> 10942. 
> Mar 11 06:43:21  haproxy-systemd-wrapper[10939]: haproxy-systemd-wrapper: 
> exit, haproxy RC=0 
> Mar 11 06:43:21  systemd[1]: Starting HAProxy Load Balancer... 
> Mar 11 06:43:21  systemd[1]: Started HAProxy Load Balancer. 
> Mar 11 06:43:21  haproxy-systemd-wrapper[19642]: haproxy-systemd-wrapper: 
> executing /usr/sbin/haproxy 

This seems to happen because something is just restarting haproxy. Maybe
logrotate? "rgrep haproxy /etc" may give a clue.
-- 
Write clearly - don't be too clever.
- The Elements of Programming Style (Kernighan & Plauger)



Haproxy 1.7.10 constantly restarting

2018-03-11 Thread Aleksey Gordeev
I'm sorry is that question is not suitable. Please give correct channel to 
contact. 

It's started about a month ago. I have separate instances of same version 
haproxy. One of them restarts every 2 or 3 days. 

I have only this in log 

Mar 11 06:43:21  systemd[1]: Stopping HAProxy Load Balancer... 
Mar 11 06:43:21  haproxy-systemd-wrapper[10939]: haproxy-systemd-wrapper: 
SIGTERM -> 10942. 
Mar 11 06:43:21  haproxy-systemd-wrapper[10939]: haproxy-systemd-wrapper: 
exit, haproxy RC=0 
Mar 11 06:43:21  systemd[1]: Starting HAProxy Load Balancer... 
Mar 11 06:43:21  systemd[1]: Started HAProxy Load Balancer. 
Mar 11 06:43:21  haproxy-systemd-wrapper[19642]: haproxy-systemd-wrapper: 
executing /usr/sbin/haproxy 

I'm not very good in linux. So, what additional info can I provide? 

cat /proc/sys/net/ipv4/ip_local_port_range 
1024 65535 

ss -s 

Total: 4535 (kernel 5526) 
TCP: 7563 (estab 4341, closed 2934, orphaned 227, synrecv 0, timewait 2931/0), 
ports 0 

Transport Total IP IPv6 
* 5526 - - 
RAW 0 0 0 
UDP 10 8 2 
TCP 4629 4627 2 
INET 4639 4635 4 
FRAG 0 0 0 

Haproxy -vv 

A-Proxy version 1.7.10 2018/01/02 
Copyright 2000-2018 Willy Tarreau  

Build options : 
TARGET = linux2628 
CPU = generic 
CC = gcc 
CFLAGS = -O2 -g -fno-strict-aliasing -DTCP_USER_TIMEOUT=18 
OPTIONS = USE_LINUX_TPROXY=1 USE_ZLIB=1 USE_REGPARM=1 USE_OPENSSL=1 USE_PCRE=1 
USE_PCRE_JIT=1 

Default settings : 
maxconn = 2000, bufsize = 16384, maxrewrite = 1024, maxpollevents = 200 

Encrypted password support via crypt(3): yes 
Built with zlib version : 1.2.7 
Running on zlib version : 1.2.7 
Compression algorithms supported : identity("identity"), deflate("deflate"), 
raw-deflate("deflate"), gzip("gzip") 
Built with OpenSSL version : OpenSSL 1.0.2n 7 Dec 2017 
Running on OpenSSL version : OpenSSL 1.0.2n 7 Dec 2017 
OpenSSL library supports TLS extensions : yes 
OpenSSL library supports SNI : yes 
OpenSSL library supports prefer-server-ciphers : yes 
Built with PCRE version : 8.32 2012-11-30 
Running on PCRE version : 8.32 2012-11-30 
PCRE library supports JIT : yes 
Built without Lua support 
Built with transparent proxy support using: IP_TRANSPARENT IPV6_TRANSPARENT 
IP_FREEBIND 

Available polling systems : 
epoll : pref=300, test result OK 
poll : pref=200, test result OK 
select : pref=150, test result OK 
Total: 3 (3 usable), will use epoll. 

Available filters : 
[COMP] compression 
[TRACE] trace 
[SPOE] spoe 

- 
С Уважением Гордеев А.Д. 



haproxy-main1
Description: Binary data


haproxy-global.cfg
Description: Binary data