One goal. 2 settings. Which one would you recommend?

2016-07-11 Thread matt_l
Hi I am debating what is a better setting between the 2 settings below. Setting#1 and Setting#2 attempt to do the same task (flow control by controlling the IP sources). Setting#1 uses one machine and Setting#2 uses 2 machines in a cascading manner. Thank you for your help 1. Setting #1 1 ma

Re: add limit_upstream to nginx

2016-06-20 Thread matt_l
Hi Chuanwen Your module did not quite work for me. I opened up a ticket here. https://github.com/cfsego/nginx-limit-upstream/issues/12 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267614,267727#msg-267727 ___ nginx mailing list nginx@nginx

limit_conn is not limiting the number of connections in my use case

2016-06-18 Thread matt_l
Hello, I have a hard time understanding limit_conn My NGINX has the configuration below. I would expect to see 16 connections on the backend server 192.168.10.131 defined in the "dynamic" directive. Yet I see ~50-60 connections. QPS:3056 Active connections: 58 QPS:

lua_shared_dict

2014-09-26 Thread matt_l
Hello I am using http://wiki.nginx.org/HttpLuaModule#lua_shared_dict I am storing a set of of ids. local a_uuid = "... a_dict.set(a_dict, a_uuid, a_uuid) Ideally it would be more efficient for my use case to have lua_shared_set or lua_shared_bloom_filter Has anyone encounter/ implement a sh

Re: multiple limit_req_zone

2014-09-15 Thread matt_l
Valentin, Thank you so much for your example. It definitely helps. When you say "A client IP address serves as a key. [...]. One megabyte zone can keep about 16 thousand 64-byte states." Does that mean that 1 megabyte zone can keep the state on 16 thousand different sending IP addresses? What abou

Re: multiple limit_req_zone

2014-09-13 Thread matt_l
Valentin Thank you very much for your response. What would be a use case where one would define multiple limit_req_zone? For example, I would assume that the following limit_req_zone $binary_remote_addr zone=one:10m rate=10r/s; limit_req_zone $binary_remote_addr zone=two:10m rate=10r/s; is co

multiple limit_req_zone

2014-09-13 Thread matt_l
Hello Please may I ask a question with respect to limit_req_zone to better understand how it works Can I have multiple limit_re_zone statements? limit_req_zone $binary_remote_addr zone=one:10mrate=10r/s; limit_req_zone $binary_remote_addr zone=two:10mrate=10r/s; Thank you Pos

Can NGINX add an empty payload

2014-08-08 Thread matt_l
Hello I have taken the NGINX training but the following question was not covered. I am hoping I can get some help from the community. Thank you in advance. Can NGINX add empty (or static non empty) payload to a request when proxying to a server in the Location directive (or elsewhere) For exampl

KeepAlive and Connection closed

2014-07-08 Thread matt_l
Hello I am new to nginx. I will be taking the nginx training next week. In the meantime I was wondering if i was implementing the following properly. I have an nginx instance that is sitting between my server and a client. The client requires that I close the connection when I respond to it. The

x-security-header

2014-07-08 Thread matt_l
Hello I am new to nginx. This is most likely a beginner question. I apologize in advance. I have a client that is sending http request with an x-security-header: a6rb35723926d2c685c2d7ud3034179828blablabla How can I configure nginx so that if the x-security-header is not present then the request