Skip to main content

BioMAJ daemon service

Project description

# About

Microservice to manage biomaj, acts as a frontend to receive biomaj-cli commands and execute operations

Needs mongo and redis

# Development

flake8 –ignore E501 biomaj_daemon

# Run

## Message consumer:

export BIOMAJ_CONFIG=path_to_config.yml python bin/biomaj_daemon_consumer.py

## Web server

If package is installed via pip, you need a file named gunicorn_conf.py containing somehwhere on local server:

def worker_exit(server, worker):

from prometheus_client import multiprocess multiprocess.mark_process_dead(worker.pid)

If you cloned the repository and installed it via python setup.py install, just refer to the gunicorn_conf.py in the cloned repository.

export BIOMAJ_CONFIG=path_to_config.yml rm -rf ..path_to/godocker-prometheus-multiproc mkdir -p ..path_to/godocker-prometheus-multiproc export prometheus_multiproc_dir=..path_to/godocker-prometheus-multiproc gunicorn -c ../path_to/gunicorn_conf.py biomaj_daemon.daemon.biomaj_daemon_web:app

Web processes should be behind a proxy/load balancer, API base url /api/daemon

3.0.7:

Add whatsup support for non proxy config Skip bank config with errors

3.0.6:

Fix logging for monolithic setup Add whatsup option Fix prometheus stats

3.0.5:

Fix for python 2.x

3.0.4:

Fix status page with other services Add missing README in package

3.0.3:

Fix missing parameters

3.0.2:

Move options to management to utils for reuse Fix –about-me

3.0.1:

Micro service to manage biomaj updates

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

biomaj_daemon-3.0.7-py2.py3-none-any.whl (15.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file biomaj_daemon-3.0.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for biomaj_daemon-3.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6229058665fbae1d2abc4c4d142e39751b867e638baa0defeeb25137fba77174
MD5 875b3ddd7697bfb566bb42f41646a819
BLAKE2b-256 c44cbc987eb5133c55f3e7f9025292cd3b469c7f3a840c74ffb35a1e0d57d24c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page