Open dnadeau-lanl opened 3 years ago
Is PGPORT, etc. a standard for Postgres? (Documented anywhere?) As discussed in #14 it would be good to avoid magic environment variables that are specific to us and better to have a robust set of arguments (both Python-level and command line) that can fully specify the database and make it easy to build a sqlalchemy URL. That also would hopefully make support for other databases easier down the road.
I also have on my plate (was hoping to start this week but got into firefighting mode) to first cut out any scripts that aren't being used, and then do some consolidation of argument handling across all scripts, so that the code to parse out database-specification command line arguments lives in one place.
My suggested enhancement is ...
Allow users to use posgresql which is supported by SQLalchemy.
Relation to an issue
When many machines are running dbprocessing, using
postgresql
makes it easier to centralize a database to a main server where each process can communicate.Proposed enhancement
Use
postgresql
and allowdbprocessing
to access it.Use/detect
postgres
environment variable to access apostgres
database.Alternatives
Use different sqllite database on different machines to process. Which means that the load balancing has to be done manually and only 1 machine will be allowed to process 1 instrument.
Version of dbprocessing
LANL version
Closure condition
dbprocessing can work with progresql without error.