aws / aws-parallelcluster

AWS ParallelCluster is an AWS supported Open Source cluster management tool to deploy and manage HPC clusters in the AWS cloud.
https://github.com/aws/aws-parallelcluster
Apache License 2.0
830 stars 312 forks source link

cron jobs for mlocate and man-db should be disabled #3869

Closed mrgum closed 2 years ago

mrgum commented 2 years ago

If you are reporting an issue with AWS Parallelcluster / CfnCluster please make sure to add the following data in order to facilitate the root cause detection:

Required Info:

Bug description and how to reproduce: Out of the box parallel cluster has mlocate installed and runs daily cron jobs

Additional context: Any other context about the problem. E.g.:

like any cron based system activity. running updatedb/man-db can impact the performance of running jobs, and affects benchmarking results

I think it would be better if the default were to disable things like this

enrico-usai commented 2 years ago

Hi @mrgum thanks for this suggestion.

mlocate, man-db updates are executed by Anacron, so a suggestion might be to add an OnNodeConfigured custom bootstrap action to disable Anacron in the compute nodes, with a script like the following:

#!/bin/bash
sed 's/^/#/' /etc/anacrontab | sudo tee /etc/anacrontab.tmp
mv -f --backup /etc/anacrontab.tmp /etc/anacrontab

Let me know if it helps, anyway I'm marking it as feature enhancement. Thanks

francesco-giordano commented 2 years ago

AWS-ParallelCluster 3.2.1 Disable cron job tasks man-db and mlocate, which may have a negative impact on node performance.