Configure Job Submission
Installation
For PrimeHub EE, the job submission is enabled by default. Here is the advanced configuration for job submission
Job Settings
jobSubmission.workingDirSize
The size of ephemeral storage for working directory. The format of unit is defined in kubernetes document
5Gi
jobSubmission.defaultActiveDeadlineSeconds
Default timeout (seconds) for a running job
86400
jobSubmission.defaultTTLSecondsAfterFinished
Default TTL (seconds) to delete the pod for a finished job
604800
jobSubmission.jobTTLSeconds
the retention of a job that it will be kept in PrimeHub after the job (succeeded, failed, cancelled). The default value is 30 days. Zero value means unlimited.
2592000
jobSubmission.jobLimit
The limit of total amount of jobs, the oldest job will be removed if the limit is exceeded; Zero value means unlimited.
4000
Example:
jobSubmission:
workingDirSize: '5Gi'
defaultActiveDeadlineSeconds: 86400
defaultTTLSecondsAfterFinished: 604800
nodeSelector: {}
affinity: {}
tolerations: []
Job Artifacts
jobSubmission.artifact.enabled
If the job artifact feature is enabled
true
jobSubmission.artifact.limitSizeMb
The total size of artifacts a job can upload
100
jobSubmission.artifact.limitFiles
The total files a job can upload
1000
jobSubmission.artifact.retentionSeconds
How long would the artifacts preserve
604800
Example:
# Job artifact feature require primehub store and PHFS
store:
enabled: true
phfs:
enabled: true
jobSubmission:
artifact:
enabled: true
limitSizeMb: 100
limitFiles: 1000
retentionSeconds: 604800
Log Persistence.
By default, the job submission log is persistent for 7 days (configured by jobSubmission.defaultTTLSecondsAfterFinished
). The log is removed once the underlying pod is deleted. Log persistence feature allows to upload log to primehub store.
store.enabled
If the PrimeHub store is enabled
false
store.logPersistence.enabled
If the log persistence is enabled
true
fluentd.flushAtShutdown
Flush when flunetd is shutdown. Please see flush_interval
setting in flunetd buffer document
false
fluentd.chunkLimitSize
The max size of each chunks. Please see chunk_limit_size
setting in flunetd buffer document
"256m"
fluentd.storeAs
The log format stored in the store. We supports txt
or gzip
. Please see store_as
setting in flunetd s3 plugin document
txt
store:
enabled: true
logPersistence:
enabled: true
fluentd:
# Buffer configuration: https://docs.fluentd.org/configuration/buffer-section
flushAtShutdown: false
flushInterval: "3600s"
chunkLimitSize: "256m"
# S3 Configuration: https://docs.fluentd.org/output/s3
storeAs: "txt"