Am 04.12.23 um 15:00 schrieb Ondřej Kuzník:
Hi Stefan, are you trying to use the load balancer before it has had a chance to establish its own connections?
Hi Ondrej,
setting loglevel to "conns" on both, the ldap-servers and the loadbalancer I'm getting no entry in the log on the two ldap-server but on the loadbalancer I see: --------------- Dez 04 15:33:54 loadbalancer01 slapd[1519]: lload_listener: listen=14, new connection fd=29 Dez 04 15:33:54 loadbalancer01 slapd[1519]: lload_connection_init: connection connid=4 allocated for socket fd=29 peername=IP=192.168.56.24:50978 Dez 04 15:33:54 loadbalancer01 slapd[1519]: client_tls_handshake_cb: connid=4 finished Dez 04 15:33:54 loadbalancer01 slapd[1519]: connection_read_cb: connection connid=4 ready to read Dez 04 15:33:54 loadbalancer01 slapd[1519]: operation_init: received a new operation, bind request with msgid=1 for client connid=4 Dez 04 15:33:54 loadbalancer01 slapd[1519]: request_bind: connid=4, msgid=1 no available connection found Dez 04 15:33:54 loadbalancer01 slapd[1519]: connection_write_cb: considering writing to live connid=4 what=0 Dez 04 15:33:54 loadbalancer01 slapd[1519]: connection_write_cb: have something to write to connection connid=4 Dez 04 15:33:54 loadbalancer01 slapd[1519]: handle_pdus: re-enabled read event on connid=4 Dez 04 15:33:54 loadbalancer01 slapd[1519]: connection_read_cb: suspended read event on connid=4 Dez 04 15:33:54 loadbalancer01 slapd[1519]: connection_read_cb: connection connid=4 ready to read Dez 04 15:33:54 loadbalancer01 slapd[1519]: operation_init: received a new operation, unbind request with msgid=2 for client connid=4 Dez 04 15:33:54 loadbalancer01 slapd[1519]: handle_one_request: received unbind, closing client connid=4 Dez 04 15:33:54 loadbalancer01 slapd[1519]: client_unlink: removing client connid=4 Dez 04 15:33:54 loadbalancer01 slapd[1519]: connection_read_cb: suspended read event on connid=4 Dez 04 15:33:54 loadbalancer01 slapd[1519]: client_destroy: destroying client connid=4
---------------
Doing the same with loadbalancer configured via slapd.conf I see:
----on the ldap-server-------- Dez 04 15:38:47 provider01 slapd[505]: daemon: activity on 1 descriptor Dez 04 15:38:47 provider01 slapd[505]: daemon: activity on: Dez 04 15:38:47 provider01 slapd[505]: 21r Dez 04 15:38:47 provider01 slapd[505]: Dez 04 15:38:47 provider01 slapd[505]: daemon: read active on 21 Dez 04 15:38:47 provider01 slapd[505]: daemon: epoll: listen=7 active_threads=0 tvp=zero Dez 04 15:38:47 provider01 slapd[505]: daemon: epoll: listen=8 active_threads=0 tvp=zero Dez 04 15:38:47 provider01 slapd[505]: daemon: epoll: listen=9 active_threads=0 tvp=zero Dez 04 15:38:47 provider01 slapd[505]: daemon: epoll: listen=10 active_threads=0 tvp=zero Dez 04 15:38:47 provider01 slapd[505]: daemon: epoll: listen=11 active_threads=0 tvp=zero Dez 04 15:38:47 provider01 slapd[505]: conn=1201 op=0 BIND dn="uid=repl-user,ou=users,dc=example,dc=net" method=128 Dez 04 15:38:47 provider01 slapd[505]: daemon: activity on 1 descriptor Dez 04 15:38:47 provider01 slapd[505]: daemon: activity on: Dez 04 15:38:47 provider01 slapd[505]: Dez 04 15:38:47 provider01 slapd[505]: daemon: epoll: listen=7 active_threads=0 tvp=zero Dez 04 15:38:47 provider01 slapd[505]: daemon: epoll: listen=8 active_threads=0 tvp=zero Dez 04 15:38:47 provider01 slapd[505]: daemon: epoll: listen=9 active_threads=0 tvp=zero Dez 04 15:38:47 provider01 slapd[505]: daemon: epoll: listen=10 active_threads=0 tvp=zero Dez 04 15:38:47 provider01 slapd[505]: daemon: epoll: listen=11 active_threads=0 tvp=zero Dez 04 15:38:47 provider01 slapd[505]: conn=1201 op=0 BIND dn="uid=repl-user,ou=users,dc=example,dc=net" mech=SIMPLE bind_ssf=0 ssf=256 Dez 04 15:38:47 provider01 slapd[505]: conn=1201 op=0 RESULT tag=97 err=0 qtime=0.000017 etime=0.013379 text=
------------------------------
and
-----on the loadbalancer ---- Dez 04 15:38:47 loadbalancer01 slapd[1623]: operation_init: received a new operation, bind request with msgid=1 for client connid=30 Dez 04 15:38:47 loadbalancer01 slapd[1623]: handle_bind_response: received response for bind request msgid=1 by client connid=30, result=0 Dez 04 15:38:47 loadbalancer01 slapd[1623]: forward_final_response: connid=4 msgid=1 finishing up with a request for client connid=30 Dez 04 15:38:47 loadbalancer01 slapd[1623]: operation_init: received a new operation, search request with msgid=2 for client connid=30 Dez 04 15:38:47 loadbalancer01 slapd[1623]: forward_final_response: connid=1 msgid=2 finishing up with a request for client connid=30 Dez 04 15:38:47 loadbalancer01 slapd[1623]: operation_init: received a new operation, unbind request with msgid=3 for client connid=30 Dez 04 15:38:47 loadbalancer01 slapd[1623]: handle_one_request: received unbind, closing client connid=30 -----------------------------