Project

General

Profile

Actions

Enhancement #351

open

Pyoto as a webapp

Added by Marc Dequènes over 9 years ago. Updated over 9 years ago.

Status:
In Progress
Priority:
Low
Assignee:
-
Category:
-
Start date:
2014-09-21
Due date:
% Done:

0%

Estimated time:
Patch Available:
Confirmed:
No
Help Needed:

Description

The goal is to run Pyoto without playing with reverse-proxy configurations and be able to setup better resource scaling. With a modern web server you can run WSGI apps and control the number of workers needed to scale to your need, or even have all workers stop when the app is useless. We have in mind using Fusion Passenger which allows fine control over the workers.

The Pyoto daemon would be run separately, and the web server would then handle running the frontend workers by itself.

Thus, we would need to split the startup code, and ensure to decouple common resources (like logs).


Files

passenger_wsgi.py (509 Bytes) passenger_wsgi.py Marc Dequènes, 2014-09-21 19:25
Actions #1

Updated by Marc Dequènes over 9 years ago

I was able to run the frontend, but it does not solve anything releated to common resources.

The following Passenger tree was created:
passenger
├── app -> ../pyoto.git
├── kid -> app/kid
├── passenger_wsgi.py
├── public -> app/static
└── tmp
└── restart.txt
The passenger_wsgi.py file is attached.

I had to take a few things from pyoto-main.py and lib/pyoto.py. I guess setting the application version should be done somewhere in lib/pyoto.py. I fear PyotoRoot would have to be split as it contains many things used in the daemon only.

Actions

Also available in: Atom PDF