Compare commits
2 Commits
e6808e1dbd
...
c5f8f189cc
| Author | SHA1 | Date |
|---|---|---|
|
|
c5f8f189cc | |
|
|
a1d8a00238 |
|
|
@ -14,15 +14,15 @@ app_domain = "https://twin.batiao8.com"
|
|||
ingore_event = "/api/user/event"
|
||||
|
||||
[mysql]
|
||||
host = "10.0.2.157"
|
||||
port = 3307
|
||||
host = "10.7.0.36"
|
||||
port = 3308
|
||||
user = "twin"
|
||||
pass = "z[T)5svx--N(nUO("
|
||||
db = "twin"
|
||||
threshold = 10000
|
||||
|
||||
[elastic]
|
||||
address = "http://10.0.2.133:9200"
|
||||
address = "http://10.7.0.36:9200"
|
||||
username = "elastic"
|
||||
password = "o2NJzeAODwpfAgLJ5SFY"
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ qy_kf_id = ""
|
|||
|
||||
|
||||
[metric]
|
||||
address = "http://10.0.2.157:8086"
|
||||
address = "http://10.7.0.36:8086"
|
||||
username = "batiao"
|
||||
password = "Batiao12B"
|
||||
|
||||
|
|
@ -70,4 +70,4 @@ qiniu_secret_key = "C2fUI3qdrQIPkwx2yB4h1Etjbb0LQ15P4aHwShWa"
|
|||
minio_domain = "https://m.batiao8.com"
|
||||
minio_bucket = "member"
|
||||
minio_access_key = "minio"
|
||||
minio_secret_key = "Minio@Bat123"
|
||||
minio_secret_key = "Minio@Bat123"
|
||||
|
|
|
|||
19
start.sh
19
start.sh
|
|
@ -1,5 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -x
|
||||
|
||||
crash() {
|
||||
SERVICE_NAME="$_SERVICE_NAME"
|
||||
HOSTNAME_="${_POD_NAME:-$(hostname)}"
|
||||
IP="$_POD_IP"
|
||||
curl -sS -G "https://t.batiao8.com/ext/service/crash" \
|
||||
--connect-timeout 3 --max-time 5 \
|
||||
--retry 2 --retry-delay 1 \
|
||||
--data-urlencode "service=$SERVICE_NAME" \
|
||||
--data-urlencode "hostname=$HOSTNAME_" \
|
||||
--data-urlencode "ip=$IP" \
|
||||
>/dev/null 2>&1 || true
|
||||
}
|
||||
|
||||
ROOT=$(cd `dirname $0`; pwd)
|
||||
cd $ROOT
|
||||
|
||||
|
|
@ -9,8 +22,6 @@ fi
|
|||
|
||||
while [ true ];do
|
||||
$ROOT/bin/$BINARY $@ >> log/run.log 2>&1
|
||||
/usr/local/bin/sendproxy weixin "jiangyong,ranzhenghua" "[$HOSTNAME] [$CONFIG_ENV] [$BINARY] 服务崩溃[`date +"%Y-%m-%d %H:%M:%S"`]"
|
||||
crash
|
||||
sleep 10
|
||||
done
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue