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/

## Web server

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

def worker_exit(server, worker):
from prometheus_client import multiprocess

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

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

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

## API

For authentication, add api key to HTTP header X-API-KEY

For admin only, operations, add to config.yml

- admin_user_id

TO use API, some operations are limited to

Fix traefix prefix
Fix some bank status info checks
Add new endpoint /api/daemon/bank/<bank>/owns
Add queued bank names in whatsup
Update pika dependency release
Add tags for traefik support
Allow use of env variables to override micro.x and rabbitmq variables in
like for config.yml.
Ex: WEB_LOCAL_ENDPOINT_DOWNLOAD defines proxy address for download web service,
WEB_LOCAL_ENDPOINT defines global proxy address for all web services, etc.
If not defined, will use values from
After migration checks, update db_schema to current version
Add --history option
Catch SIGTERM to cancel bank update for SIGKILL
Fake version for Pypi re-upload
Allow per service local_endpoint definition
Add --stats option
Modify --version option to get all module details
Add REST API to daemon (/api/daemon/...)

Add to python scripts for install with package
Disable daemon web service logging
Fix tail endpoint syntax
Fix #1 remove debug log
Fix #2 log dir not removed with --remove-all if proxy option not set
Fix #78, for multiple banks update in monolithic config, if one fails, next banks are not updated
Add /api/daemon/bank/x/log[/y] endpoint to get last bank session log file
Add whatsup support for non proxy config
Skip bank config with errors
Fix logging for monolithic setup
Add whatsup option
Fix prometheus stats
Fix for python 2.x
Fix status page with other services
Add missing README in package
Fix missing parameters
Move options to management to utils for reuse
Fix --about-me
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 Distribution

biomaj_daemon-3.0.19.tar.gz (17.8 kB view hashes)

Uploaded Source

Built Distribution

biomaj_daemon-3.0.19-py2.py3-none-any.whl (18.8 kB view hashes)

Uploaded Python 2 Python 3

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