Re: spoa-mirror

2020-02-12 Thread Aleksandar Lazic

Hi Dmitry.

Please keep the mailing-list in the loop, thanks.

On 12.02.20 08:17, Дмитрий Меркулов wrote:

Hello Aleks
Information about version, haproxy and spoa-agent conf in the attachment.


HA-Proxy version 2.1.0 2019/11/25 - https://haproxy.org/
Status: stable branch - will stop receiving fixes around Q1 2021.
Known bugs: http://www.haproxy.org/bugs/bugs-2.1.0.html
...

 conf
...

backend mirroragent
mode tcp
option tcplog
balance roundrobin
timeout connect 5s
timeout server 5s
server agent 0.0.0.0:12345 #check observe layer4 inter 3000 rise 2 fall 2

listen port:10026
mode http
option httplog
bind *:10026
maxconn 1000
filter spoe engine trafficmirror config /etc/haproxy/mirror.cfg
balance roundrobin
###


During the request, in the haproxy logs I see the following strings:
Feb 12 10:13:47 localhost haproxy[6374]: SPOE: [mirroragent] 
 sid=52 st=0 0/0/0/0/0 2/2 0/0 1/8
Feb 12 10:13:47 localhost haproxy[6374]: 194.87.225.137:54385 [12/Feb/2020:10:13:47.615] 
port:10026 port:10026/DPS1 1/0/0/2/3 200 138 - -  1/1/0/0/0 0/0 "GET / 
HTTP/1.1"
If I create 3-4 requests in a row, then in the agent’s logs:
[ 2][   66.224617]   <2:27> (E) Failed to send frame length: Broken pipe


I can't find this message in the code.
https://github.com/haproxytech/spoa-mirror/search?q=Failed+to+send+frame+length_q=Failed+to+send+frame+length

Can you try to build the mirror with debug enabled?
./configure --enable-debug

Can you try to run `strace -fveall -a1024 -s1024 -o spoa-mirror.log spoa-mirror 
`

I don't use the mirror by my self, hopefully someone on the list can help you 
more to debug the issue.



Вторник, 11 февраля 2020, 19:23 +03:00 от Aleksandar Lazic 
:
Hi Dmitry.

On 11.02.20 15:29, Дмитрий Меркулов wrote:
 > Good day!
 > Could you help with the setup spoa-mirror v1.2.1?
 > SPOE: [mirroragent]  sid=0 st=0 
0/0/0/0/0 1/1 0/0 0/1
 > I see the backend sends data to the agent, but the agent does not 
broadcast anything to the destination server.
 > I run the agent with the following command
 > spoa-mirror --runtime 0 -u http://***.***.***.**:*/  --logfile 
W:/var/log/haproxy-mirror.log -n 1 -i 2s -b 30
 > Sometimes in the log I get the following error:
 > [ 1][  110.567823]   <7:10> (E) Failed to send frame length: Broken pipe
 > I would be very grateful for your help.

Which version of haproxy do you use?
haproxy -vv

What's your haproxy config?
Do you have any logs from haproxy?

Please don't send Screenshots because they are not visible in text only 
mailers, thanks.

 > --
 > Dmitry Merkulov

Regards
Aleks

-- Dmitry Merkulov





Re: spoa-mirror

2020-02-11 Thread Aleksandar Lazic

Hi Dmitry.

On 11.02.20 15:29, Дмитрий Меркулов wrote:

Good day!
Could you help with the setup spoa-mirror v1.2.1?
SPOE: [mirroragent]  sid=0 st=0 0/0/0/0/0 
1/1 0/0 0/1
I see the backend sends data to the agent, but the agent does not broadcast 
anything to the destination server.
I run the agent with the following command
spoa-mirror --runtime 0 -u http://***.***.***.**:*/  --logfile 
W:/var/log/haproxy-mirror.log -n 1 -i 2s -b 30
Sometimes in the log I get the following error:
[ 1][  110.567823]   <7:10> (E) Failed to send frame length: Broken pipe
I would be very grateful for your help.


Which version of haproxy do you use?
haproxy -vv

What's your haproxy config?
Do you have any logs from haproxy?

Please don't send Screenshots because they are not visible in text only 
mailers, thanks.


--
Dmitry Merkulov


Regards
Aleks