Nomad: 0.9.4
We’re using Nomad’s periodic cron job configuration for scheduling backups of our databases and using t3.medium instances in an auto-scaling group for cost and availability since we’re only backing up our databases at a random internal every hour. I noticed that the CPU credits were getting exhausted which in turn has caused our periodic jobs to hang:
We have the following config to avoid concurrent backups:
"Periodic": {
"Enabled": true,
"Spec": "14 * * * *",
"SpecType": "cron",
"ProhibitOverlap": true,
"TimeZone": "UTC"
},
Is there a way to enforce a timeout at the Nomad job level for periodic jobs or constrain jobs to be placed on nodes that have the CPU compute capacity?
There doesn’t seem to be a Nomad-exposed attribute for tracking compute credits per say: