Hypocrite Elon Musk has finally banned all Jet tracker accounts on Twitter, despite claiming that he supports freedom of expressions. Of course, the hypocrite only supports expression about things he agree with.
This is a cookbook style on how to set a limit (ulimit style) on your custom services that is managed by systemd.
Why would you want to do something like this?
You might be running on a small server (or instance if you are using cloud services) and want to prevent your application from affecting other services sharing that server (think of noisy neighbor problem).
Generally, Linux kernel scheduler does a good job of fairly sharing system resources, but that is assuming you have a well behaved application.
Sometime you want to pack applications tightly and don’t mind less performant applications.
In summary, there are lots of reasons why you might want to tune the resources allocated to your applications.
Luckily, if you are using systemd as the controller (and if you are not, why not?), you can take advantage of its capabilities.
There are some caveats. You need to be using a fairly recent kernel and Linux distrob, either Ubuntu/Debian or recent CentOS/RedHat/Fedora.
I am going to show you how to get cloudquery run under systemd on an Ubuntu 20.04 LTS. The reason that I want to do this is because cloudquery will use as much memory as it can and trigger Linux OOM killer.
There are 3 files needed:
This file contains definition for CQ_SERVICE_ACCOUNT_KEY_JSON, the value of which is the json content of your service account key file.
[Unit] Description=Slice that limits memory for all my services
[Slice] # MemoryHigh works only in "unified" cgroups mode, NOT in "hybrid" mode # Must add 'systemd.unified_cgroup_hierarchy=1' to GRUB_CMDLINE_LINUX_DEFAULT # in /etc/default/grub MemoryHigh=10240M # MemoryMax works in "hybrid" cgroups mode, too MemoryMax=10240M
This is a simple first event in public interest to attract talents in Silicon Valley and globally to understand what is in store for with Quantum Computing as it evolves over next few years to become the next technology to change Computing , Communications & Sensing that start trickling onto main stream Digital, Operations and Knowledge transformation.
As a humble beginning like to introduce Quantum Logic and compare with Digital Logic to garner to see how one can leverage the cloud hosted free offerings from IBM, Google, Amazon and others to get informal education and see how this pans out as open technology for startups and hobbyist to innovate and use DIY way to build their skills for future opportunities.
This will be a 18 week effort every Monday evening 6.30PM PDT / 9.30 PM EST / 7.00 AM IST for 1:30 hrs:mts. Ist and last week ie. 1st & 18th Monday will be Opening and closing events. So don’t miss the actions to become qualified to handle Quantum Technology.
The easiest way to do will be have Subject introduction and follow up with interactions to set goals for one quarter and see how it shapes up. Doing this weekly for few weeks should help us consolidate and plan the course of actions.
You must be logged in to post a comment.