Skip to content

Instantly share code, notes, and snippets.

@andrii29
andrii29 / run-xtrabackup.sh
Created May 22, 2018 11:37 — forked from jmfederico/run-xtrabackup.sh
Script to create full/incremental backups with xtrabackup.
#!/bin/sh
TMPFILE="/tmp/xtrabackup-runner.$$.tmp"
USEROPTIONS="--user=${MYSQL_USER} --password=${MYSQL_PASSWORD} --host=${MYSQL_HOST}"
BACKDIR=/srv/mysql-bak
BASEBACKDIR=$BACKDIR/base
INCRBACKDIR=$BACKDIR/incr
FULLBACKUPCYCLE=604800 # Create a new full backup every X seconds
KEEP=1 # Number of additional backups cycles a backup should kept for.
START=`date +%s`
kubernetes/master : kubeadm | Upgrade other masters ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 30.86s
container-engine/docker : ensure docker packages are installed ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 23.81s
download : download_file | Download item ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 18.89s
etcd : Refresh Time Fact ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[all]
master-1 ansible_host=xxx.xxx.xxx.xxx ip=yyy.yyy.yyy.yyy
master-2 ansible_host=xxx.xxx.xxx.xxx ip=yyy.yyy.yyy.yyy
master-3 ansible_host=xxx.xxx.xxx.xxx ip=yyy.yyy.yyy.yyy
node-1 ansible_host=xxx.xxx.xxx.xxx ip=yyy.yyy.yyy.yyy
node-2 ansible_host=xxx.xxx.xxx.xxx ip=yyy.yyy.yyy.yyy
node-3 ansible_host=xxx.xxx.xxx.xxx ip=yyy.yyy.yyy.yyy
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
[INPUT]
Name tail
Path /var/lib/docker/containers/*/*.log
Parser docker
Refresh_Interval 5
Mem_Buf_Limit 0
Skip_Long_Lines On
[FILTER]
Name grep
Fluent Bit v1.3.6
Copyright (C) Treasure Data
[2020/02/10 08:17:44] [debug] [storage] [cio stream] new stream registered: tail.0
[2020/02/10 08:17:44] [ info] [storage] initializing...
[2020/02/10 08:17:44] [ info] [storage] in-memory
[2020/02/10 08:17:44] [ info] [storage] normal synchronization mode, checksum disabled, max_chunks_up=128
[2020/02/10 08:17:44] [ info] [engine] started (pid=1)
[2020/02/10 08:17:44] [debug] [engine] coroutine stack size: 24576 bytes (24.0K)
[2020/02/10 08:17:44] [debug] [in_tail] inotify watch fd=19