Hi All,
I'm new to uwsgi and thus far am loving it!
I have 2 quick questions:
[1] Is it possible to share php session state accross multiple caches
(as in the single node cache2 example for the php plugin) using the udp
server nodes/sync directives?
[2] Is it possible to load a particular directive based on the servers
host name in the config file?
For example I have three servers, node[1-3], ip's: 1.1.1.[1-3] and
assuming question [1] above is doable, is it possible to have something
like the following in a single uwsgi ini file definition
[uwsgi]
plugin = php
<snip>
if (hostname) == node1
cache2 =
name=session-cache,items=8192,blocksize=64,udp-server=1.1.1.1:10000,nodes=1.1.1.2:10000;1.1.1.3:10000,sync=1.1.1.2:10000;1.1.1.3:10000
if (hostname) == node2
cache2 =
name=session-cache,items=8192,blocksize=64,udp-server=1.1.1.2:10000,nodes=1.1.1.1:10000;1.1.1.3:10000,sync=1.1.1.1:10000;1.1.1.3:10000
if (hostname) == node3
cache2 =
name=session-cache,items=8192,blocksize=64,udp-server=1.1.1.3:10000,nodes=1.1.1.1:10000;1.1.1.2:10000,sync=1.1.1.1:10000;1.1.1.2:10000
In the above I am trying to achieve a specific cache2 declaration based
on the host name of the system.
I currently have shared storage between the web servers and the uwsgi
config file for the php-plugin is visible to all 3 nodes.
Thanks
Bruce
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi