2023-12-12 20:14:45 +00:00
|
|
|
---
|
|
|
|
#Protocol used to serve
|
|
|
|
protocol: "http"
|
|
|
|
|
|
|
|
#Server listening port
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
#Worker pool
|
|
|
|
worker_pool:
|
|
|
|
#Worker concurrency
|
|
|
|
workers: 10
|
|
|
|
backend: "redis"
|
|
|
|
#Additional config if use 'redis' backend
|
|
|
|
redis_pool:
|
|
|
|
#redis://[arbitrary_username:password@]ipaddress:port/database_index
|
2023-12-13 17:30:20 +00:00
|
|
|
redis_url: redis://harbor-redis:6379/2?idle_timeout_seconds=30
|
2023-12-12 20:14:45 +00:00
|
|
|
namespace: "harbor_job_service_namespace"
|
2023-12-13 17:30:20 +00:00
|
|
|
idle_timeout_second: 3600
|
2023-12-12 20:14:45 +00:00
|
|
|
#Loggers for the running job
|
|
|
|
job_loggers:
|
|
|
|
- name: "STD_OUTPUT" # logger backend name, only support "FILE" and "STD_OUTPUT"
|
|
|
|
level: "INFO" # INFO/DEBUG/WARNING/ERROR/FATAL
|
|
|
|
- name: "FILE"
|
|
|
|
level: "INFO"
|
|
|
|
settings: # Customized settings of logger
|
|
|
|
base_dir: "/var/log/jobs"
|
|
|
|
sweeper:
|
|
|
|
duration: 1 #days
|
|
|
|
settings: # Customized settings of sweeper
|
|
|
|
work_dir: "/var/log/jobs"
|
|
|
|
|
|
|
|
#Loggers for the job service
|
|
|
|
loggers:
|
|
|
|
- name: "STD_OUTPUT" # Same with above
|
|
|
|
level: "INFO"
|
2023-12-13 17:30:20 +00:00
|
|
|
|
|
|
|
metric:
|
|
|
|
enabled: true
|
|
|
|
path: /metrics
|
|
|
|
port: 9090
|