Yann Weber
9df0443a8b
[broken] Starting multisite loader rewriting refs #235
At this point the loader in lodel/plugins/multisite/run.py is theorically
complete & correct. But some features are missing in order to be able
to test & debug it ( refs #275 ).
8 lat temu
Yann Weber
93f1f91699
Code cleaning
Deleting code from old standalone server
8 lat temu
Yann Weber
fcebf96031
More comments
8 lat temu
Yann Weber
b7197d8ea4
Adding some comments in multisite loader.py & run.py
8 lat temu
Yann Weber
6da005fa91
First commit of a single uWSGI serving X lodel2
Seems to works !! :)
8 lat temu
Yann Weber
5fe7b025ff
Enhancement in standalone server
Now we are able to limit the number of spawned child processes
8 lat temu
Yann Weber
c1f627eb18
Add configurable stuff for the standalone server
Now listening address, listening port and max_children count can be configured using the Settings module
8 lat temu
Yann Weber
31af31ded2
multisite server optimisation
Adding a cache for app module reducing seriously routing overhead
8 lat temu
Yann Weber
c8f571f0b7
Deleting debug messaging of multisite standalone server
8 lat temu
Yann Weber
e31adfda8e
Bugfixes in numerous import processes
Replace some old pure python import by LodelContext calls
Change the plugins imports methods to use LodelContext instead
Fixes dyncode exposure method
8 lat temu
Yann Weber
742e77225a
Add a fogotten file
8 lat temu
Yann Weber
ab0e5146dd
Updates the multisite loader to enable loader settings & logger
8 lat temu
Yann Weber
a21e0be25f
Fixing multisite loading process & dyncode bootstrapping
- a "normal" import was left in lefactory_common
- the hook triggering datasources init in dyncode was not called
- dyncode was not exposed in the loader (making hook call useless : the hook has to be called once the dyncode has been "seen" (imported) by python)
8 lat temu
Yann Weber
e3b8e49060
Bugfixes in context and webui in order to test multisite
Regression may have been introduced about MONOSITE mode
8 lat temu
Roland Haroutiounian
29253424f4
Small fixes
8 lat temu
prieto
4e4190298b
Multisite loader - correction
8 lat temu
prieto
3dfe523c5a
Multisite loader
8 lat temu
Yann Weber
773ea0e696
LodelContext enhancement to fit the new loader
+ uses the changes in the preload method
8 lat temu
Roland Haroutiounian
fb45b2bb4e
bugfix in loader.py
8 lat temu
Roland Haroutiounian
1607c99d7b
Deleted a useless import in the loader module in the multisite plugin
8 lat temu
Roland Haroutiounian
44a674d99b
The preload function is getting its contexts directly from LodelContexts._contexts
8 lat temu
Roland Haroutiounian
8521a393c1
Added the plugins loading to the preload
8 lat temu
Yann Weber
9668aed506
Enhancement of multisite WSGIServer
- found a way to make it implements the socketserver.ForkinTCPServer features reducing the global code size (and removed a lot of dirty copy & paste from cpython sources)
- deleted useless imports
8 lat temu
Roland Haroutiounian
9a8a615893
Added a loader module in the multisite plugin
8 lat temu
Yann Weber
2a7c196bfb
Solves the client socket leak bug in forking wsgi server
8 lat temu
Yann Weber
0aaadb3d2d
Overwrite default socketserver.ForkingMixIn max_children limit
8 lat temu
Yann Weber
0406e91846
Moved plugins folder in lodel/
- updated scripts etc
- make tests pass
8 lat temu