This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(docker inspect my-sibling-dind-container --format '{{ .NetworkSettings.IPAddress }}') | |
-- Make sure both run on the same "network" (bridge by default in most cases) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Simple table to keep track of delete chunks | |
create table _delete_log | |
( | |
log varchar(200) null, | |
createdAt timestamp null | |
); | |
------------ Stored proc definition --------------- | |
DROP PROCEDURE IF EXISTS delete_chunks; | |
DELIMITER $$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Command to run pt online schema change | |
pt-online-schema-change \ | |
D=<dbname>,t=<table_name>,h=<hostname>,u=<username> \ | |
--alter="<alter sql>" \ | |
--ask-pass \ | |
--execute \ | |
--max-load 100 \ | |
--critical-load 120 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# replace any with a specific interface you want to monitor or just use any to capture all interfaces | |
tcpdump -i any 'dst port 53' >> /var/log/dnsqueries.log | |
#### If using supervisord, use this template for setting up the program entry: | |
# [program:dnsworker] | |
# command=bash dnsquerylogger.sh | |
# autostart=true | |
# autorestart=true |
OlderNewer