cron of Go daily

brief introduction cron A library for managing timing tasks, using Go to achieve the effect of crontab command in Linux. We introduced a similar Go library before—— gron . gron code is small, which is better for learning. But its function is relatively simple, and it is no longer maintained. If there is a need for timed tasks, cron ...

Posted by vchris on Sat, 27 Jun 2020 09:10:13 +0200

Slow log of MySQL Event scheduled tasks

Preface Recently, we are trying to use a log system, graylog, to collect the slow query log of mysql for subsequent analysis, monitoring and alarm. The test steps have been completed and the logs have been collected successfully. During the test, you need to brush some slow query logs. In order to brush more logs and not have a greater impact o ...

Posted by murp32 on Mon, 04 May 2020 13:43:41 +0200

Python -- an example of business monitoring based on domain name polling

Please indicate the source of Reprint: http://blog.csdn.net/l1028386804/article/details/78965865 Most of DNS resolution is a domain name corresponding to an IP address, but through DNS polling technology, a domain name corresponding to multiple IPS can be achieved, so as to achieve the simplest and most efficient load balancing. However, the b ...

Posted by charlesg on Thu, 30 Apr 2020 20:59:38 +0200

MySQL task scheduling tool EVENT

Summary MySQL EVENT is a scheduled task, similar to crontab task on LinuxIt mainly has the following properties In mysql, the objects of timing events are globally unique event performs operations according to the schedule, including one SQL operation. You can also use begin and end to implement multiple SQL composite execution The permission ...

Posted by Otiose Dodge on Fri, 20 Mar 2020 11:42:24 +0100

shell script to export remote mysql database table data to local

Script function Brief 1. Export remote mysql database table data to local and save as file 2. Support the configuration of table information to be exported to the configuration file. The script will cycle the configuration file and parse the configuration file, and then complete the subsequent data export. 3. Incremental export by time is ...

Posted by DJP1986 on Tue, 03 Mar 2020 09:58:27 +0100

Using shell+crontab to clean up logs regularly

Background introduction Scan the specified log directory every hour, empty the file directly after it exceeds 100M, and use it as a temporary means of operation and maintenance. The source code is mainly composed of two functions: reviewLogs() determines the log size and clears it; getdir() determines whether it is a dire ...

Posted by Erestar on Tue, 28 Jan 2020 18:02:16 +0100

Analysis of easyswoole source code (startup service)

Previous link When reading, it is better to refer to the source code of easysoole 2.1.2 $inst->run();//Startup service The actual call here is the start method servermanager:: getinstance() - > start(); This method is mainly used to start the swoole service //Create master service $this->createMainServer(); In this code, the core ...

Posted by Serberus on Mon, 06 Jan 2020 18:09:39 +0100

Asible Learning Notes--Common Modules

Ansible Common Modules Modules included in this section: (1) Timing task module cronvar (2) archive module (3) Unpacking module unarchive (4) Download module get_url (5) wait_for module (6) script module Timed Task Module cronvar In addition to the cron module itself, which can manage cron's environment variables, another module, cronvar, can ...

Posted by jharbin on Sun, 17 Nov 2019 05:15:50 +0100

SSH blasting emergency response

Problem finding Log in to the virtual machine, and according to the prompt message, it is found that it is suffering from SSH explosion attack, with IP address of 159.65.230.189. Check the log in related security logs: tail -f /var/log/secure, and find other attempts to blow up IP106.12.183.6, 182.61.166.179, 220.88.40.41. Baidu search IP add ...

Posted by gtibok on Sat, 02 Nov 2019 08:06:32 +0100

Oracle RAC Application PSU

1. Backup databaseBoth RMAN and expdp can be used.2. Backup Software Directory (node1/2) tar -czvf /u01/grid.tar.gz /u01/app/11.2.0/grid --exclude=/u01/app/11.2.0/grid/rdbms/audit/* tar -czvf /u01/database.tar.gz /u01/app/oracle/ --exclude=/u01/app/oracle/admin/orcl/adump/* 3. Backup OCR (node1/2) [grid@vastdata01 ~]$ cd $ORACLE_HOME/bin [g ...

Posted by john8m on Wed, 02 Oct 2019 03:53:29 +0200