mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-01 08:09:59 +01:00
5c0266e719
Get job by job_id in redis Get the last 10MB of data if it exceeds 10MB Signed-off-by: stonezdj <daojunz@vmware.com>
56 lines
1.3 KiB
Django/Jinja
56 lines
1.3 KiB
Django/Jinja
---
|
|
#Protocol used to serve
|
|
{% if internal_tls.enabled %}
|
|
protocol: "https"
|
|
|
|
https_config:
|
|
cert: "/etc/harbor/ssl/job_service.crt"
|
|
key: "/etc/harbor/ssl/job_service.key"
|
|
|
|
#Server listening port
|
|
port: 8443
|
|
{% else %}
|
|
protocol: "http"
|
|
|
|
#Server listening port
|
|
port: 8080
|
|
{% endif %}
|
|
|
|
#Worker pool
|
|
worker_pool:
|
|
#Worker concurrency
|
|
workers: {{max_job_workers}}
|
|
backend: "redis"
|
|
#Additional config if use 'redis' backend
|
|
redis_pool:
|
|
#redis://[arbitrary_username:password@]ipaddress:port/database_index
|
|
redis_url: {{redis_url}}
|
|
namespace: "harbor_job_service_namespace"
|
|
idle_timeout_second: 3600
|
|
#Loggers for the running job
|
|
job_loggers:
|
|
- name: "STD_OUTPUT" # logger backend name, only support "FILE" and "STD_OUTPUT"
|
|
level: "{{level}}" # INFO/DEBUG/WARNING/ERROR/FATAL
|
|
- name: "FILE"
|
|
level: "{{level}}"
|
|
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: "{{level}}"
|
|
|
|
{% if metric.enabled %}
|
|
metric:
|
|
enabled: true
|
|
path: {{ metric.path }}
|
|
port: {{ metric.port }}
|
|
{% endif %}
|
|
|
|
# the max size of job log returned by API, default is 10M
|
|
max_retrieve_size_mb: 10 |