From d93d1ad695b4abc36e9b555ab937b8fca1d789e6 Mon Sep 17 00:00:00 2001 From: Olivier Date: Tue, 12 Dec 2023 21:14:45 +0100 Subject: [PATCH] Ajouter conf/jobservice/config.yml --- conf/jobservice/config.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 conf/jobservice/config.yml diff --git a/conf/jobservice/config.yml b/conf/jobservice/config.yml new file mode 100644 index 0000000..0440756 --- /dev/null +++ b/conf/jobservice/config.yml @@ -0,0 +1,41 @@ +--- +#Protocol used to serve +protocol: "http" + +#Config certification if use 'https' protocol +#https_config: +# cert: "server.crt" +# key: "server.key" + +#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 + redis_url: redis://harbor-redis:6379/2 + namespace: "harbor_job_service_namespace" +#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" +#Admin server endpoint +admin_server: "http://adminserver:8080/"