Skip to main content

Cronjobs

CronJobs are scheduled tasks that run at regular intervals (e.g., daily at 3 a.m., weekly, or monthly). They automate repetitive tasks such as backups, log cleanup, or periodic updates. Like Jobs, they also run in pods, which makes it easy to view their logs.

FAQs

How can I configure memory and CPU settings for my Cronjob?

You can configure the CPU Request and CPU Limit values to set the minimum and maximum CPU resources each instance in your cluster can use. Similarly, you set Memory Request and Memory Limit for memory allocation per instance.

Lets add a Cronjob for your Project

1. Navigate to create Cronjob section

Into the Left Pane, access Workloads. Then select the Cronjob tab and then, at the top right corner, click on the Create button.

cronjob-list

2. Select a Project and a Name for the cronjob

Start with the basic information, complete these attributes and click Next to continue.

AttributeDescription
NameIdentify your cronjob.
ProjectSelect between the existent projects.
CommandThe command that runs the cronjob.

Once those attributes are completed, click the Next button to move forward.

cronjob-create-1

3. Define the periodicity

Select how will be your connection and click on Next.

AttributeDescription
CrontabCron expresion to determine the schedule to execute the cronjob
cronjob-create-2

5. Finish the set up

This step outlines the key attributes for configuring the resources of a Cronjob in SleakOps, allowing for flexible management of CPU, memory, and scaling behaviors.

AttributeDescription
CPU RequestThe minimum amount of CPU resources allocated for each instance in the cluster. This ensures that each instance always has this amount of CPU available.
CPU LimitThe maximum CPU resources that each instance in the cluster can use. This cap helps prevent any single instance from consuming too much CPU.
Memory RequestThe minimum amount of memory allocated for each instance in the cluster. This guarantees that the instance has enough memory to operate efficiently.
Memory LimitThe maximum amount of memory each instance in the cluster can utilize. It limits the memory usage to prevent any single instance from overconsuming resources.
cronjob-create-3

Submit to create and Deploy your cronjob.