Hello,
Me again. I'm in satisfaction with my current configuration as quite good
in performance:
Apache: prefork with 150 child processed max, wsgi daemon mode:
processes=6 threads=5
I have a Flask global variable:
app.abc = select_db(my_db)
At the beginning (the 1st request) of a process, it takes some time to get
the value of app.abc cause Database progress, after that, for the sub
sequence requests of same process, i already have the app.abc in memory to
serve the threads, so it's really fast to respond.
Now, issue raise when the content in DB is changed and i need to update the
app.abc but i don't know how to clean app.abc of all processes in the
memory. Apache reload is solved problem but this is really ugly method,
touch the wsgi file also not help cause this global var still persist in
mem.
I also read https://code.google.com/p/modwsgi/wiki/ReloadingSourceCode but
don't get the point for my situation.
Please help me for more detail. Thank in advance.
Regard,
Tuan.
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.