Re: Configuration adjustment for GRPC service

2024-01-25 Thread Jason Anderson via nginx
Have you tried configuring grpc timeouts on NGINX?

This combined with an upstream healthcheck should prevent any client
connections that aren't possible for NGINX to service.

https://nginx.org/en/docs/http/ngx_http_grpc_module.html#grpc_connect_timeout

https://docs.nginx.com/nginx/admin-guide/load-balancer/grpc-health-check/


Regards,

Jason

On Thu, Jan 25, 2024, 6:01 AM Ľuboš Pinteš  wrote:

> Hello, everybody,
> I am implementing a GRPC service which has methods, i.e. request/reply
> and one streaming method, through which the server sends events at
> random intervals.
> The GRPC server is written in Go, the client in C#, we are using Grpc.Core.
>
> If the server is not running and I call one of the request/reply
> methods, an error occurs as I expect. But if I call the streaming
> method, Nginx accepts the connection and the client gets stuck on
> calling await events.ResponseStream.MoveNext(...);
>
> I would like to ask how to configure Nginx so that an error occurs even
> if the streaming method is called if the server is not running, e.g. it
> restarts out of my control if the server on which my service is running
> restarts.
>
> Thank you
> ___
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


Re: How can I sync nginx.conf in two keepalived server?

2024-01-30 Thread Jason Anderson via nginx
This may help:

https://docs.nginx.com/nginx/admin-guide/high-availability/configuration-sharing/

Regards,

Jason

On Tue, Jan 30, 2024, 9:04 AM baalchina  wrote:

> Hi, all. I had just deploy two nginx servers and made them high-available
> using keepalived. I tested it, and HA works fine.
>
> But I had some new questions here:
> 1st, When I edited the nginx.conf in master server, how to transfer the
> conf file to backup server immediately?
> 2nd, And after I edited , I should run 'nginx -s reload' in the master
> server, how can backup server do the same without manual run?
> And last, if the config is not correct, after the file transferred to
> backup, the backup server can not restart correct, will the backup goes
> down?
>
> Thanks.
>
>
> --
> from:baalchina
> ___
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx