2018-03-08 06:16:57 +01:00
|
|
|
---
|
|
|
|
#Protocol used to serve
|
|
|
|
protocol: "https"
|
|
|
|
|
|
|
|
#Config certification if use 'https' protocol
|
|
|
|
https_config:
|
|
|
|
cert: "server.crt"
|
|
|
|
key: "server.key"
|
|
|
|
|
|
|
|
#Server listening port
|
2018-03-14 08:52:00 +01:00
|
|
|
port: 9443
|
2018-03-08 06:16:57 +01:00
|
|
|
|
2019-04-18 10:02:49 +02:00
|
|
|
#Worker worker
|
2018-03-08 06:16:57 +01:00
|
|
|
worker_pool:
|
2018-04-08 04:38:47 +02:00
|
|
|
#Worker concurrency
|
2018-03-08 06:16:57 +01:00
|
|
|
workers: 10
|
|
|
|
backend: "redis"
|
|
|
|
#Additional config if use 'redis' backend
|
|
|
|
redis_pool:
|
2018-04-12 10:17:57 +02:00
|
|
|
#redis://[arbitrary_username:password@]ipaddress:port/database_index
|
|
|
|
#or ipaddress:port[,weight,password,database_index]
|
2019-06-12 05:09:26 +02:00
|
|
|
redis_url: "redis://localhost:6379/2"
|
|
|
|
namespace: "harbor_job_service_namespace"
|
2018-03-22 11:29:39 +01:00
|
|
|
|
2018-11-05 11:23:31 +01:00
|
|
|
#Loggers for the running job
|
|
|
|
job_loggers:
|
|
|
|
- name: "STD_OUTPUT" # logger backend name, only support "FILE" and "STD_OUTPUT"
|
|
|
|
level: "DEBUG" # INFO/DEBUG/WARNING/ERROR/FATAL
|
|
|
|
- name: "FILE"
|
|
|
|
level: "DEBUG"
|
|
|
|
settings: # Customized settings of logger
|
2019-06-12 05:09:26 +02:00
|
|
|
base_dir: "/tmp/job_logs"
|
2018-11-05 11:23:31 +01:00
|
|
|
sweeper:
|
|
|
|
duration: 1 #days
|
|
|
|
settings: # Customized settings of sweeper
|
2019-06-12 05:09:26 +02:00
|
|
|
work_dir: "/tmp/job_logs"
|
2018-11-05 11:23:31 +01:00
|
|
|
|
|
|
|
#Loggers for the job service
|
|
|
|
loggers:
|
|
|
|
- name: "STD_OUTPUT" # Same with above
|
|
|
|
level: "DEBUG"
|
2018-03-08 06:16:57 +01:00
|
|
|
|