a
This commit is contained in:
parent
39b098159b
commit
fe7af59c2c
@ -35,72 +35,51 @@ clear_mysql:
|
||||
select count(id) from role_mail where role_id not in (select id from role)
|
||||
select count(id) FROM `tribe_member` WHERE role_id NOT IN ( SELECT id FROM role)
|
||||
========================================check combine data=========================================
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_636 -e"select count(1),server_id from user group by server_id;"
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_684 -e"select count(1),server_id from user group by server_id;"
|
||||
==========================================step 1===============================================
|
||||
10.10.6.114-117
|
||||
python wjtx.py changestatus -m maintain -o add -s 668-675
|
||||
10.10.6.122,123
|
||||
python wjtx.py changestatus -m maintain -o add -s 684-687
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_668 >legend_668.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_669 >legend_669.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_670 >legend_670.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_671 >legend_671.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_672 >legend_672.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_673 >legend_673.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_674 >legend_674.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_675 >legend_675.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_684 >legend_684.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_685 >legend_685.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_686 >legend_686.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_687 >legend_687.sql
|
||||
|
||||
python wjtx.py initdb -s 668
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_668 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.114 6381 out/game_redis.script
|
||||
python wjtx.py initdb -s 684
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_684 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.122 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
close 10.10.6.115,116,117
|
||||
python wjtx.py changestatus -m maintain -o remove -s 668-675
|
||||
close 10.10.6.123
|
||||
python wjtx.py changestatus -m maintain -o remove -s 684-687
|
||||
==========================================step 2===============================================
|
||||
10.10.6.118-121
|
||||
python wjtx.py changestatus -m maintain -o add -s 676-683
|
||||
10.10.6.124,125
|
||||
python wjtx.py changestatus -m maintain -o add -s 688-691
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_676 >legend_676.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_677 >legend_677.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_678 >legend_678.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_679 >legend_679.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_680 >legend_680.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_681 >legend_681.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_682 >legend_682.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_683 >legend_683.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_688 >legend_688.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_689 >legend_689.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_690 >legend_690.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_691 >legend_691.sql
|
||||
|
||||
python wjtx.py initdb -s 676
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_676 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.118 6381 out/game_redis.script
|
||||
python wjtx.py initdb -s 688
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_688 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.124 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
close 10.10.6.119,120,121
|
||||
python wjtx.py changestatus -m maintain -o remove -s 676-683
|
||||
close 10.10.6.125
|
||||
python wjtx.py changestatus -m maintain -o remove -s 688-691
|
||||
=======================================step 3===============================================
|
||||
10.10.6.230 246
|
||||
python wjtx.py changestatus -m maintain -o add -s 616-651
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_616 >legend_616.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_636 >legend_636.sql
|
||||
|
||||
python wjtx.py initdb -s 616
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_616 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.246 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 616
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 636
|
||||
python wjtx.py changestatus -m maintain -o remove -s 616-651
|
||||
=======================================step 4===============================================
|
||||
10.10.6.106,108,112
|
||||
python wjtx.py changestatus -m maintain -o add -s 652-667
|
||||
10.10.6.106,114,118
|
||||
python wjtx.py changestatus -m maintain -o add -s 652-683
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_652 >legend_652.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_656 >legend_656.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_664 >legend_664.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_668 >legend_668.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_676 >legend_676.sql
|
||||
|
||||
python wjtx.py initdb -s 652
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_652 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.106 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 652
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 656
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 664
|
||||
python wjtx.py changestatus -m maintain -o remove -s 652-667
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 668
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 676
|
||||
close 10.10.6.114,10.10.6.118
|
||||
python wjtx.py changestatus -m maintain -o remove -s 652-683
|
||||
|
@ -30,7 +30,7 @@ def read_json(filename):
|
||||
def main():
|
||||
create_conf_work()
|
||||
csv_data = get_csv()
|
||||
for i in range(1, 5):
|
||||
for i in range(1, 4):
|
||||
check_file = f"server_list_{i}.json"
|
||||
json_data = read_json(check_file)
|
||||
print(f"check {check_file}")
|
||||
|
@ -1,42 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 668,
|
||||
"redis_host": "10.10.6.114",
|
||||
"serverid": 684,
|
||||
"redis_host": "10.10.6.122",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 669,
|
||||
"redis_host": "10.10.6.114",
|
||||
"serverid": 685,
|
||||
"redis_host": "10.10.6.122",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 670,
|
||||
"redis_host": "10.10.6.115",
|
||||
"serverid": 686,
|
||||
"redis_host": "10.10.6.123",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 671,
|
||||
"redis_host": "10.10.6.115",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 672,
|
||||
"redis_host": "10.10.6.116",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 673,
|
||||
"redis_host": "10.10.6.116",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 674,
|
||||
"redis_host": "10.10.6.117",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 675,
|
||||
"redis_host": "10.10.6.117",
|
||||
"serverid": 687,
|
||||
"redis_host": "10.10.6.123",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,42 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 676,
|
||||
"redis_host": "10.10.6.118",
|
||||
"serverid": 688,
|
||||
"redis_host": "10.10.6.124",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 677,
|
||||
"redis_host": "10.10.6.118",
|
||||
"serverid": 689,
|
||||
"redis_host": "10.10.6.124",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 678,
|
||||
"redis_host": "10.10.6.119",
|
||||
"serverid": 690,
|
||||
"redis_host": "10.10.6.125",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 679,
|
||||
"redis_host": "10.10.6.119",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 680,
|
||||
"redis_host": "10.10.6.120",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 681,
|
||||
"redis_host": "10.10.6.120",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 682,
|
||||
"redis_host": "10.10.6.121",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 683,
|
||||
"redis_host": "10.10.6.121",
|
||||
"serverid": 691,
|
||||
"redis_host": "10.10.6.125",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,12 +1,17 @@
|
||||
[
|
||||
{
|
||||
"serverid": 616,
|
||||
"redis_host": "10.10.6.246",
|
||||
"serverid": 652,
|
||||
"redis_host": "10.10.6.106",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 636,
|
||||
"redis_host": "10.10.6.230",
|
||||
"redis_port": 6382
|
||||
"serverid": 668,
|
||||
"redis_host": "10.10.6.114",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 676,
|
||||
"redis_host": "10.10.6.118",
|
||||
"redis_port": 6381
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user