new combine in 20210907
This commit is contained in:
parent
f4631cb8d4
commit
93746a43d1
@ -33,46 +33,78 @@ mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_556 -e"select count(1),server_id
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_560 -e"select count(1),server_id from user group by server_id;"
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_520 -e"select count(1),server_id from user group by server_id;"
|
||||
==========================================step 1===============================================
|
||||
10.10.6.216,217
|
||||
python wjtx.py changestatus -m maintain -o add -s 556-559
|
||||
10.10.6.220-223
|
||||
python wjtx.py changestatus -m maintain -o add -s 564-571
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_564 >legend_564.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_565 >legend_565.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_566 >legend_566.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_567 >legend_567.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_568 >legend_568.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_569 >legend_569.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_570 >legend_570.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_571 >legend_571.sql
|
||||
|
||||
python wjtx.py initdb -s 564
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_564 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.220 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
python wjtx.py changestatus -m maintain -o remove -s 564-571
|
||||
==========================================step 2===============================================
|
||||
10.10.6.224 225
|
||||
python wjtx.py changestatus -m maintain -o add -s 572-575
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_572 >legend_572.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_573 >legend_573.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_574 >legend_574.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_575 >legend_575.sql
|
||||
|
||||
python wjtx.py initdb -s 572
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_572 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.224 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
python wjtx.py changestatus -m maintain -o remove -s 572-575
|
||||
=======================================step 3===============================================
|
||||
10.10.6.216 218
|
||||
python wjtx.py changestatus -m maintain -o add -s 556-563
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_556 >legend_556.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_557 >legend_557.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_558 >legend_558.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_559 >legend_559.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_560 >legend_560.sql
|
||||
|
||||
python wjtx.py initdb -s 556
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_556 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.216 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
python wjtx.py changestatus -m maintain -o remove -s 556-559
|
||||
==========================================step 2===============================================
|
||||
10.10.6.218 219
|
||||
python wjtx.py changestatus -m maintain -o add -s 560-563
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 556
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 560
|
||||
python wjtx.py changestatus -m maintain -o remove -s 556-563
|
||||
=======================================step 4===============================================
|
||||
10.10.6.45
|
||||
python wjtx.py changestatus -m maintain -o add -s 210-309
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_560 >legend_560.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_561 >legend_561.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_562 >legend_562.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_563 >legend_563.sql
|
||||
|
||||
python wjtx.py initdb -s 560
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_560 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.218 6381 out/game_redis.script
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_210 >legend_210.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_266 >legend_266.sql
|
||||
clear database by clear_old.sql
|
||||
python wjtx.py initdb -s 210
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_210 -e"source all.sql"
|
||||
clear 10.10.6.45 6381
|
||||
python import_redis.py 10.10.6.45 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
python wjtx.py changestatus -m maintain -o remove -s 560-563
|
||||
=======================================step 3===============================================
|
||||
10.10.6.198 210 214
|
||||
python wjtx.py changestatus -m maintain -o add -s 520-555
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 210
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 266
|
||||
change gameserve config 210 redis from 6382->6381
|
||||
python wjtx.py changestatus -m maintain -o remove -s 210-309
|
||||
=======================================step 5===============================================
|
||||
10.10.6.93
|
||||
python wjtx.py changestatus -m maintain -o add -s 310-391
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_520 >legend_520.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_544 >legend_544.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_552 >legend_552.sql
|
||||
|
||||
python wjtx.py initdb -s 520
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_520 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.198 6381 out/game_redis.script
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_310 >legend_310.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_360 >legend_360.sql
|
||||
clear database by clear_old.sql
|
||||
python wjtx.py initdb -s 310
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_310 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.93 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 520
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 544
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 552
|
||||
python wjtx.py changestatus -m maintain -o remove -s 520-555
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 310
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 360
|
||||
python wjtx.py changestatus -m maintain -o remove -s 310-391
|
@ -30,7 +30,7 @@ def read_json(filename):
|
||||
def main():
|
||||
create_conf_work()
|
||||
csv_data = get_csv()
|
||||
for i in range(1, 4):
|
||||
for i in range(1, 6):
|
||||
check_file = f"server_list_{i}.json"
|
||||
json_data = read_json(check_file)
|
||||
print(f"check {check_file}")
|
||||
|
@ -1,22 +1,42 @@
|
||||
[
|
||||
{
|
||||
"serverid": 556,
|
||||
"redis_host": "10.10.6.216",
|
||||
"serverid": 564,
|
||||
"redis_host": "10.10.6.220",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 557,
|
||||
"redis_host": "10.10.6.216",
|
||||
"serverid": 565,
|
||||
"redis_host": "10.10.6.220",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 558,
|
||||
"redis_host": "10.10.6.217",
|
||||
"serverid": 566,
|
||||
"redis_host": "10.10.6.221",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 559,
|
||||
"redis_host": "10.10.6.217",
|
||||
"serverid": 567,
|
||||
"redis_host": "10.10.6.221",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 568,
|
||||
"redis_host": "10.10.6.222",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 569,
|
||||
"redis_host": "10.10.6.222",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 570,
|
||||
"redis_host": "10.10.6.223",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 571,
|
||||
"redis_host": "10.10.6.223",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
||||
|
@ -1,22 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 560,
|
||||
"redis_host": "10.10.6.218",
|
||||
"serverid": 572,
|
||||
"redis_host": "10.10.6.224",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 561,
|
||||
"redis_host": "10.10.6.218",
|
||||
"serverid": 573,
|
||||
"redis_host": "10.10.6.224",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 562,
|
||||
"redis_host": "10.10.6.219",
|
||||
"serverid": 574,
|
||||
"redis_host": "10.10.6.225",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 563,
|
||||
"redis_host": "10.10.6.219",
|
||||
"serverid": 575,
|
||||
"redis_host": "10.10.6.225",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,12 +1,12 @@
|
||||
[
|
||||
{
|
||||
"serverid": 210,
|
||||
"redis_host": "10.10.6.45",
|
||||
"redis_port": 6382
|
||||
"serverid": 556,
|
||||
"redis_host": "10.10.6.216",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 266,
|
||||
"redis_host": "10.10.6.45",
|
||||
"serverid": 560,
|
||||
"redis_host": "10.10.6.218",
|
||||
"redis_port": 6381
|
||||
}
|
||||
]
|
@ -1,12 +1,12 @@
|
||||
[
|
||||
{
|
||||
"serverid": 310,
|
||||
"redis_host": "10.10.6.93",
|
||||
"redis_port": 6381
|
||||
"serverid": 210,
|
||||
"redis_host": "10.10.6.45",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 360,
|
||||
"redis_host": "10.10.6.93",
|
||||
"redis_port": 6382
|
||||
"serverid": 266,
|
||||
"redis_host": "10.10.6.45",
|
||||
"redis_port": 6381
|
||||
}
|
||||
]
|
12
tools/combine_db/tools_conf/server_list_5.json
Normal file
12
tools/combine_db/tools_conf/server_list_5.json
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"serverid": 310,
|
||||
"redis_host": "10.10.6.93",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 360,
|
||||
"redis_host": "10.10.6.93",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user