Lucas JunSeong Kim 김준성
October 31, 2023 02:22AM
Hi, I have a question.

We have the system which the following structure is used:

Nginx <----> CGI interpreter <----> yumapro Netconf server

Multiple CGI interpreters are created and used through the settings below.

spawn-fcgi -s /var/run/fcgiwrap.socket -F 5 -- /var/www/yang-api/restconf

Nginx <----> CGI interpreter <----> yumapro Netconf server
CGI interpreter
CGI interpreter
CGI interpreter
CGI interpreter

A typical restconf set/get operation is used while appropriately load sharing through these five CGI interpreters, and when the set/get operation is completed, we can see that all used sessions are closed.
However, once a server-sent-event session is created, one CGI interpreter continues to wait in a blocking state for an event to occur from yumapro, so one CGI interpreter cannot perform other set/get operations.

In the above case, once 5 server-sent-event sessions are created, other set/get operations cannot be performed.

I wonder if there is a way to avoid this situation (for example, the request to create the 5th server-sent-event session is not allowed by nginx..)

Please let me know if you have any idea. Thanks.



The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website.
nginx-devel mailing list
Subject Author Views Posted

RESTCONF Server-Sent-Event session control in nginx

Lucas JunSeong Kim 김준성 256 October 31, 2023 02:22AM

Re: RESTCONF Server-Sent-Event session control in nginx

Maxim Dounin 44 October 31, 2023 04:42PM

RE: RESTCONF Server-Sent-Event session control in nginx

Lucas JunSeong Kim 김준성 71 October 31, 2023 07:56PM

Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready