Skip to content

Instantly share code, notes, and snippets.

@halfak
Last active July 16, 2020 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halfak/1c0915900ac3345479be20de28e0c52a to your computer and use it in GitHub Desktop.
Save halfak/1c0915900ac3345479be20de28e0c52a to your computer and use it in GitHub Desktop.
# Score cache options
score_caches:
ores_redis:
class: ores.score_caches.Redis
host: 127.0.0.1 # Local
port: 6379 # Default port
scoring_systems:
defaults:
metrics_collector: local_logging # Don't try to connect graphite
celery_queue:
BROKER_URL: redis://127.0.0.1:6379 # Local
CELERY_RESULT_BACKEND: redis://127.0.0.1:6379 # Local
CELERYD_CONCURRENCY: 4
logging:
root:
handlers:
- console
handlers:
console:
class : logging.StreamHandler
formatter: basic_human
level : DEBUG
stream : ext://sys.stderr
logstash:
class: logging.handlers.SysLogHandler
formatter: basic_human
address: /dev/log
file:
class: logging.handlers.TimedRotatingFileHandler
filename: /Users/chrisalbon/logs/ores.log
formatter: basic_human
when: midnight
backupCount: 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment