Tag Info

Hot answers tagged

2

What you're looking for is called stale-while-revalidate (RFC 5861) and it's currently not supported by nginx. It is, however, currently supported in Varnish 4. An nginx workaround would be to set a very long proxy_cache_valid time and add a proxy_cache_bypass header. Then you could write a script to tail the access log file and request the content with ...


2

You can use vmtouch for this... To see how much of SYSERR.TXT is in the file system cache, [root@GreenLeaf /ppro/data]# vmtouch -v SYSERR.TXT SYSERR.TXT [OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO] 1859/1859 Files: 1 Directories: 0 Resident Pages: 1859/1859 7M/7M 100% Elapsed: 0.000316 seconds 100% of it ...


1

Perhaps instead of having many locations, you could use regex to match a particular URI to your upstream application: location ~ /(app)(\d+) { proxy_pass http://127.0.0.1:808$2/$1$2; include static_file_config.conf; } You can see how it works here: https://regex101.com/r/sM3eS9/1


1

You can use sssd daemon for it - https://wiki.ubuntu.com/Enterprise/Authentication/sssd It have cache credentials feature: cache_credentials = true in config file. Then - any user after login have their credentials cached, so can login again without access to ldap server.


1

Debian and Ubuntu provide the libpam-ccreds package, that caches network login credentials. From the package description: This package provides the means for Linux workstations to locally authenticate using an enterprise identity when the network is unavailable. Used in conjunction with the nss_updatedb utility, it provides a mechanism for ...



Only top voted, non community-wiki answers of a minimum length are eligible