Smart Odoo Loadbalancer
Project description
Fortitude
Loadbalancer pour Odoo
methodes de répartition R/W :
- random ->répartition aléatoire
- robin -> appels séquentiels aux serveurs
- session -> le user est affecté à un serveur
- availability -> utilise le serveur avec le moins de connexions actives
lister de préférence des serveurs du moins puissant au plus puissant
Fichier de configuration json :
{
"http_port" : 443,
"http_bind" : "0.0.0.0",
"secure" : true,
"secure_cert" : "/etc/letsencrypt/live/XXXXX.XXX/cert.pem",
"secure_key" : "/etc/letsencrypt/live/XXXXX.XXX/privkey.pem",
"write_srv" : [
{"host" : "localhost", "port" : 8081},
{"host" : "localhost", "port" : 8082}
],
"read_srv" : [
{"host" : "localhost", "port" : 8082}
],
"ws_srv" : {"host" : "localhost", "port" : 8071},
"distribution" : "robin",
"read_rules" :[
"^/(.*)/static/(.*)",
"^/web/image\\?(.*)",
"^/web/dataset/call_kw/(.*)/get_views",
"^/web/dataset/call_kw/(.*)/web_search_read",
"^/web/dataset/call_kw/(.*)/has_group",
"^/web/dataset/call_kw/(.*)/web_read",
"^/web/dataset/call_kw/(.*)/name_search",
"^/web/dataset/call_kw/(.*)/retrieve_dashboard",
"^/web/assets/(.*)/(.*)\\.js",
"^/web/assets/(.*)/(.*)\\.css",
"^/web/webclient/load_menus/(.*)",
"^/web/webclient/translations/(.*)",
"^/mail/thread/data",
"^/mail/thread/messages",
"^/web/action/load"
]
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for fortitude-0.1.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e9de16cea795febbdac0b1c291747a6e11e94b051ff687de5789f81cc31db9c |
|
MD5 | 47caabc9fe7d64805881a2e6eee9fd8b |
|
BLAKE2b-256 | cc83b3fe506ac745a9fa49996293aa599f65a87d19fc680ea1268ec5b99975cd |