Hi,
I am getting the following error when I try to use balancer_by_lua with
ngx.balancer in my NGINX configuration.
2017/10/26 08:13:38 [error] 22447#22447: *10 failed to run balancer_by_lua*:
balancer_by_lua:2: module 'ngx.balancer' not found:
no field package.preload['ngx.balancer']
Hi,
I am trying to use the following "NGINX upstream carp" module to realize
upstream load balancing with a certain server affinity for requests.
https://github.com/olegloa/nginx-upstream-carp
The following basic configuration works fine.
upstream mybackends {
server 192.168.1.3:872
Hi Philip,
Yes. The link which you referred to, definitely tries to address quite a
similar problem as what I had described earlier.
I need to get more familiar with Lua and its usage with NGINX.
Thanks for your reply.
Regards,
Rajesh
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2
Hi,
I have a requirement to de-select or exclude one or more servers from an
upstream group, if that server is either just newborn or exhausted
(overloaded or showing reduced performance).
So, consider there are servers A, B and C in the upstream group. An external
program periodically checks A,
Hi,
Thank you Maxim and Reinis for your replies. I verified that when the
response from backend-hdd-cache gets cached in the front-end ssd-cache, the
response includes the X-Upstream-Server-Cache-Status header added from the
hdd-cache-upstream.Hence, I am seeing two headers in a response served by
Hi,
To realize a distributed caching layer based of disk-speed and storage, I
have prepared the following configuration with an SSD-cache and HDD-cache.
http {
add_header X-UpStream-Server-Cache-Status $upstream_cache_status;
# proxy caching configurations
proxy_cache_path /tmp/myss
Hi,
If proxy caching is enabled, NGINX is saving the files under subdirectories
of the proxy_cache_path, based on the MD5 hash of the cache-key and the
levels parameter value.
Is it possible to change this behaviour through configuration to cache the
files using the request URI path itself, say,
Hi,
We are trying to use NGINX for caching service in low bandwidth, high
latency mobile networks. The service is to stream 10-sec video segments of
different types ranging from 2MB to 50MB.
NGINX proxy_buffering configuration is as follows:
proxy_buffering on;
proxy_buffer_size
Probably, I should clarify that the use-case which I described above would
use the same cache-configuration for both NGINX processes - so same
proxy-cache-path and proxy-cache-key specifications.
Using a different cache-key would obviously create conflict in cached file
path.
Thanks
Rajesh
Poste
It would help in a use-case when there are 2 NGINX processes, both working
with the same cache directory.
NGINX-A runs with a proxy-cache-path /disk1/cache with zone name "cacheA".
NGINX-B runs with the same proxy-cache-path /disk1/cache with zone name
"cacheB".
When NGINX-B adds content to the
Hi Maxim,
Thanks for your inputs. I now understand that it is probably better, not to
externally interfere with the contents of the cache directory assigned to
NGINX.
Regards
Rajesh
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,276611,276625#msg-276625
_
Hi,
As I understand, during startup, the cache loader process scans the files in
the defined proxy-cache-path directories, and builds up the
in-memory-metadata. Once the metadata is built-up, the cache loader process
exits.
Is there any mechanism by which, this cache loader process can be made to
Hi Lucas,
Thanks for that suggestion about split_clients directive. I will consider it
in my evaluation.
Regards
Rajesh
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,276612,276623#msg-276623
___
nginx mailing list
nginx@nginx.org
http://m
Hi Lucas,
As long as the cached files (with the metadata at the beginning) reside in
the directory specified with the proxy_cache_path directive, they are fine.
The NGINX-proxy, which added them there in the first place, can serve the
content correctly, after skipping the right amount of metadata
Hi Reinis,
Thank you for that pointer to proxy_store directive.
I understand that this would be a useful option for static files. However,
my application currently cannot handle aspects like expiry, revalidation,
eviction etc. So, I guess I will not be able to use the proxy_store
directive for th
Hi,
While caching files on disk, NGINX-proxy adds certain metadata at the the
beginning of the file.
Can such files be served by NGINX (acting a server)? Is there a method to
skip the metadata part and just serve the content from such a cached file.?
Apologies if this is a dumb question. Just st
Hi,
I have a use-case, where NGINX (say NGINX-process-1) is set up as a reverse
proxy, with caching enabled (say in /mnt/disk2/pubRoot, with zone name
"cacheA"). However, I have another NGINX (say NGINX-Process-B) which also
runs in parallel, and caches its content in (/mnt/disk2/frontstore, with
17 matches
Mail list logo