3 Star 1 Fork 3

Gitee 极速下载/postgres-checkup

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://gitlab.com/postgres-ai/postgres-checkup
克隆/下载
run_checkup.sh 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
Dmitry 提交于 2019-11-15 21:15 . fix: run_checkup.sh
#!/bin/bash
echo "Collect the first set of snapshots (only for K*** reports)..."
HOSTS=$CHECKUP_HOSTS
if [[ ! -z ${PG_CHECKUP_HOSTS+x} ]]; then
HOSTS=$PG_CHECKUP_HOSTS
fi
if [[ ! -z ${SSH_CHECKUP_HOSTS+x} ]]; then
HOSTS=$SSH_CHECKUP_HOSTS
fi
for host in $HOSTS; do
./checkup collect \
--config "${CHECKUP_CONFIG_PATH}" \
--hostname "${host}" \
--file resources/checks/K000_query_analysis.sh
done
echo "The first set of snapshots has been created. Wait ${CHECKUP_SNAPSHOT_DISTANCE_SECONDS} seconds..."
sleep "${CHECKUP_SNAPSHOT_DISTANCE_SECONDS}"
# the distance ^^^ recommended: large enough to get good data, at least 10 minutes
echo "Collect the second set of snapshots and build reports..."
for host in $HOSTS; do
./checkup collect \
--config "${CHECKUP_CONFIG_PATH}" \
--hostname "${host}"
done
echo "Generate human-readable reports..."
./checkup process --config "${CHECKUP_CONFIG_PATH}"
echo "Upload the report to Postgres.ai platform..."
./checkup upload --config "${CHECKUP_CONFIG_PATH}"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/postgres-checkup.git
[email protected]:mirrors/postgres-checkup.git
mirrors
postgres-checkup
postgres-checkup
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385