[MXS-3317] Nginx errors while streaming to Maxscale Created: 2020-12-03 Updated: 2021-08-25 Resolved: 2021-08-25 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | N/A |
| Affects Version/s: | 2.4.14 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | acsfer | Assignee: | markus makela |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Description |
|
I have a simple stream block to stream MySQL TCP traffic to Maxscale instances. 2nd instance acts as a failover only, with a configuration as simple as:
When connections are low (<30), everything goes fine. But when connection are higher than 30, nginx error log keeps complaining about something that i don't know how to debug, as only nginx complains about this but not Maxscale.
I've tried play with options like `reuseport`, `worker_connections` or `so_keepalive` on nginx configuration but no chances. Here the Maxscale 2.4 listener:
Maxscale log remains empty (other than start notice messages) so only nginx is complaining about this. |
| Comments |
| Comment by markus makela [ 2020-12-03 ] | |||
|
Have you seen any errors in your application when this happens? | |||
| Comment by acsfer [ 2020-12-03 ] | |||
|
No, but I'm not writing anything, only reading (GET requests). | |||
| Comment by markus makela [ 2020-12-03 ] | |||
|
OK, this definitely suggests that this is caused by something in MaxScale. If you can reproduce this problem in a non-production setup, you could turn on log_info to see if there's anything logged there. | |||
| Comment by acsfer [ 2020-12-04 ] | |||
|
Log can be found here: https://hiberfile.com/d/uNLzJPRk?p=Bt2OGG@Khx=CmdyD | |||
| Comment by markus makela [ 2020-12-08 ] | |||
|
The first look of the file didn't reveal anything. A more thorough investigation needs to be done. | |||
| Comment by acsfer [ 2020-12-11 ] | |||
|
We've switched it to a RW test application. Direct connection to maxscale: no errors for 72h. Proxying trough nginx:
random errors at random times were produced in 24h. | |||
| Comment by markus makela [ 2021-08-02 ] | |||
|
Have you tried reproducing this using Nginx with only one MaxScale server? This would rule out any potential load balancing problems caused by Nginx itself. | |||
| Comment by markus makela [ 2021-08-25 ] | |||
|
I tested this locally with sysbench and the same configuration for both MaxScale and Nginx. I wasn't able to reproduce it with 100 threads or by any other means. | |||
| Comment by markus makela [ 2021-08-25 ] | |||
|
I'll close this as Cannot Reproduce since there's been no updates and our attempts to reproduce it haven't revealed anything. |