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 | |
# Set variables | |
JAVA_PID=$1 # Java process ID (pass as an argument to the script) | |
TASK_NAME=$2 | |
DUMP_DIR="/tmp/TASK_NAME" # Directory to store dumps temporarily | |
S3_BUCKET="s3://com.myvipre.tcpdump.myvpv3" | |
# Ensure the dump directory exists | |
mkdir -p "$DUMP_DIR" |
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
POST _reindex | |
{ | |
"source": { | |
"index": "events-2022-09-v2" | |
}, | |
"dest": { | |
"index": "events-2022-09-v3" | |
}, | |
"script": { | |
"source": """ |
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
def clean_docker(): | |
import requests | |
base_url = 'http://artifactory.local/artifactory/' | |
headers = { | |
'content-type': 'text/plain', | |
} | |
# Delete from 'docker-snapshots' repo all images older than 4 weeks and image name starts with 'vcloud' and does not end with 'RELEASE' |
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
version: '3.1' | |
services: | |
zookeeper-1: | |
image: confluentinc/cp-zookeeper:latest | |
environment: | |
ZOOKEEPER_SERVER_ID: 1 | |
ZOOKEEPER_CLIENT_PORT: 22181 | |
ZOOKEEPER_TICK_TIME: 2000 | |
ZOOKEEPER_INIT_LIMIT: 5 | |
ZOOKEEPER_SYNC_LIMIT: 2 |