[ env ] - 新增机器代码

This commit is contained in:
zeaslity
2023-03-04 17:04:55 +08:00
parent a130ea3d1e
commit 5d38e3fbf1
9 changed files with 1300 additions and 11 deletions

View File

@@ -24,6 +24,8 @@
--------------------------------------------- ---------------------------------------------
198.74.113.249 LosAngles-amd64-01 los-1 los1
129.146.171.163 Phoenix-amd64-02 phoenix-2 p2 129.146.171.163 Phoenix-amd64-02 phoenix-2 p2
129.146.65.80 Phoenix-arm64-01 phoenix-3 p3 129.146.65.80 Phoenix-arm64-01 phoenix-3 p3

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,11 @@
Shanghai-amd64-01-259df5->Seoul-amd64-04-f301ac Seoul-amd64-04-f301ac,
Shanghai-amd64-01-259df5->Seoul-amd64-04-f301ac->Tokyo-amd64-03-99907c Tokyo-amd64-03-99907c,
Shanghai-amd64-01-259df5->Seoul-amd64-04-f301ac,
Shanghai-amd64-01-259df5->Seoul-amd64-04-f301ac->Tokyo-amd64-03-99907c,
Shanghai-amd64-01-259df5->Seoul-amd64-04-f301ac->Phoenix-amd64-02-2a45bb,
Shanghai-amd64-01-259df5->Seoul-amd64-04-f301ac->London-amd64-01-0b219f

View File

@@ -48,6 +48,8 @@ public class AcceptAgentInitInfo {
"Phoenix", "Phoenix",
6, 6,
"London", "London",
7,
"LosAngeles",
7 7
) )
); );

View File

@@ -21,31 +21,31 @@ stream {
# mysql # mysql
server { server {
listen 21306; listen 21306;
proxy_pass 150.230.198.103:21306; proxy_pass 140.238.14.103:21306;
} }
# nacos # nacos
server { server {
listen 21060; listen 21060;
proxy_pass 150.230.198.103:21060; proxy_pass 140.238.14.103:21060;
} }
#rabbitmq #rabbitmq
server { server {
listen 20672; listen 20672;
proxy_pass 150.230.198.103:20672; proxy_pass 140.238.14.103:20672;
} }
# dashboard # dashboard
server { server {
listen 20678; listen 20678;
proxy_pass 150.230.198.103:20678; proxy_pass 140.238.14.103:20678;
} }
# redis # redis
server { server {
listen 21370; listen 21370;
proxy_pass 150.230.198.103:21370; proxy_pass 140.238.14.103:21370;
} }
} }
EOF EOF

View File

@@ -37,6 +37,8 @@ ff02::3 ip6-allhosts
43.136.177.228 Chengdu-amd64-01 tc-cd tc 43.136.177.228 Chengdu-amd64-01 tc-cd tc
198.74.113.249 LosAngles-amd64-01 los-1 los1
129.146.171.163 Phoenix-amd64-02 phoenix-2 p2 129.146.171.163 Phoenix-amd64-02 phoenix-2 p2
129.146.65.80 Phoenix-arm64-01 phoenix-3 p3 129.146.65.80 Phoenix-arm64-01 phoenix-3 p3

View File

@@ -32,3 +32,25 @@ sudo apt update
sudo apt install nginx sudo apt install nginx
sudo apt upgrade nginx sudo apt upgrade nginx
allTable=(app_appdomain_relation
app_info
appdomain_info
domain_info
execution_log
manage_info
provider_info
script_scheduler
server_app_relation
server_domain_relation
server_info
server_manage_relation)
for table in {$allTable[*]}; do
#echo "table is $table"
# echo "create table ${table} (id tinyint);"
# echo "ALTER TABLE $table DISCARD TABLESPACE;"
echo "ALTER TABLE $table IMPORT TABLESPACE;"
done

View File

@@ -25,7 +25,7 @@ CheckAndDownloadLatestVersion() {
cd /octopus-agent cd /octopus-agent
log "start to download the latest version !" log "start to download the latest version !"
wget "$OctopusAgentUrl$latestVersion" wget -q "$OctopusAgentUrl$latestVersion"
cp "$latestVersion" agent.jar cp "$latestVersion" agent.jar
log "" log ""
log "" log ""

View File

@@ -160,8 +160,16 @@ tmp() {
echo "当前主机为: ${host}" echo "当前主机为: ${host}"
ssh -p 22333 root@"$host" "systemctl restart octopus-agent" ssh -p 22333 root@"$host" "rm -rf /root/agent-bootup*
done rm -rf /root/logs
} rm -rf /root/nacos
wget https://happybirthday.107421.xyz/shell/agent-bootup.sh -O /root/agent-bootup.sh
chmod +x /root/agent-bootup.sh
/root/agent-bootup.sh"
done}