First use of Kubernetes Cronjob
backgroundAlthough the kubernetes service has been used for several years. However, the types of service applications are generally deployment stateuse daemon. As for job cronjob, it has not been used much. Now there is a php application service that needs to be executed every five minutes. You can get familiar with the use of a cronjob!First, ...
Added by Hebbs on Thu, 06 Jan 2022 11:33:04 +0200
Create a cron expression parser yourself
backgroundMade a set of information platform for a mall project of the company, that is This goods , this message is not a message such as SMS or email notification, but a message in the message queue. The platform can dynamically create consumers and producers, process asynchronous messages, and provide a variety of visual means to manage the ...
Added by hanhao on Mon, 03 Jan 2022 09:00:48 +0200
Lightweight timed task tool Cronicle: Previous
This article will introduce a lightweight and simple Web UI, which is suitable for small and medium-sized teams and individuals: Cronicle.
This is the first article about Cronicle. It mainly talks about the common problems of this software under container packaging and the ideas of container packaging.
Write in front
It has been more than fi ...
Added by nosher on Mon, 06 Dec 2021 03:31:43 +0200
Deploy asynchronous download service
Asynchronous Download
1, Background
At present, the system is slow to download large files, slow to export, a large number of interfaces occupy server bandwidth and other problems, which seriously affect the user experience. Based on this background, the asynchronous download function is developed and implemented.
2, Project structure
Brain ...
Added by fuzz01 on Tue, 26 May 2020 18:42:40 +0300
Using zabbix to monitor the CPU usage of LPAR
hyptop command
This command belongs to zlinux tools. Redhat 6 for z comes with this command.
As long as there is a linux Lpar on the mainframe, you can use this command to see the CPU usage of all lpars.
hyptop
The following command can be used to output the real-time CPU usage of each LPAR of the large machine with ...
Added by ozkan on Fri, 17 Apr 2020 19:56:34 +0300
On Mac, kill the process regularly according to the process name / restart the process by the way of Daemons
Reference blogger article https://blog.csdn.net/u010976445/article/details/50819287
To kill and restart pycharm program under Mac as an example to write script, using Python 3.6 environment
1, Kill process
ps -ef | grep pycharm | awk '{print $2}' | xargs kill -9 # After ps -ef | grep pycharm | awk '{print }' | xargs is exe ...
Added by weedo on Mon, 06 Jan 2020 19:23:08 +0200
Python gets datax execution result and saves it to database
Execute the datax job, create the execution file, and execute at 1 point every day in crontab (related below):
The two rows of record, job start and job finish, are added by themselves, so as to identify which table is convenient.
#!/bin/bash
source /etc/profile
user1="root"
pass1="pwd"
user2="root"
pass2="pwd"
job_path="/opt ...
Added by nbaxley on Sun, 05 Jan 2020 08:19:19 +0200
5. ansible management task plan, ansible installation package and management services, playbook using ansible
1. ansible Management Task Plan
# ansible testhost -m cron -a "name='test cron' job='/bin/touch /tmp/1212.txt' weekday=6"
Name specifies the name of the task plan, job specifies what its command is, and then it specifies its time-sharing day, month, week, or *.
[root@yw02 ~]# crontab -l
#Ansible: test cron
* * * * 6 /bin/touch /tmp/1212.txt
T ...
Added by Gibb Boy on Thu, 05 Dec 2019 04:46:06 +0200
[play Python] create an intelligent voice alarm clock for girlfriend
Before reading this article, you should be at least a program ape that can install the operating system. You should know Linux, Python, and most importantly, you should have a girlfriend. Of course, it doesn't matter. After reading this article, you try to make such an alarm clock. Maybe...
Software and hardware list
Card reader and SD card ...
Added by kr3m3r on Wed, 16 Oct 2019 10:42:58 +0300
Linux Scheduled Task Management
In the actual production environment, there will always be some regular tasks, such as data backup, we can not always wait until that time to perform manually, then planning tasks will come into use.
One-time Planned Tasks
at
One-time Planned Tasks
at [HH:MM] [YYYY-MM-DD]
Set up, press Ctrl + D to exit
1. Get the current time of the system
...
Added by JasonGreen on Wed, 02 Oct 2019 22:52:43 +0300