Skip to content

Getting DOMjudge to work in DigitalOcean

MCJ Vasseur edited this page Oct 19, 2021 · 1 revision

DOMjudge can run as judge in DigitalOcean but changing the kernelparameters was difficult in the past.

Currently this works when the machine has an internal kernel (https://docs.digitalocean.com/products/droplets/how-to/kernel/) changes in the /etc/default/grub to the GRUB_CMDLINE_LINUX_DEFAULT can be overwritten by files in /etc/default/grub.d with for example 50-cloudimg-settings.cfg, the name may vary depending on the setup; what you are looking for is a .cfg file that also contains a "GRUB_CMDLINE_LINUX_DEFAULT" property.

In general the needed kernel options for DOMjudge can be appended to the value there to make the VM start with the DigitalOcean specific settings and the needed kernel options for the judgedaemon.

At the moment of writing: GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0" to: GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0 quiet cgroup_enable=memory swapaccount=1"

Thanks Chris in Slack for the investigation.

Clone this wiki locally