new combine in 20211116
This commit is contained in:
parent
f0f105e4e1
commit
28ce7f3794
@ -35,51 +35,69 @@ 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_616 -e"select count(1),server_id from user group by server_id;"
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_636 -e"select count(1),server_id from user group by server_id;"
|
||||
==========================================step 1===============================================
|
||||
10.10.6.94 95
|
||||
python wjtx.py changestatus -m maintain -o add -s 628-631
|
||||
10.10.6.98-101
|
||||
python wjtx.py changestatus -m maintain -o add -s 636-643
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_628 >legend_628.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_629 >legend_629.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_630 >legend_630.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_631 >legend_631.sql
|
||||
|
||||
python wjtx.py initdb -s 628
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_628 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.94 6381 out/game_redis.script
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_636 >legend_636.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_637 >legend_637.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_638 >legend_638.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_639 >legend_639.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_640 >legend_640.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_641 >legend_641.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_642 >legend_642.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_643 >legend_643.sql
|
||||
python wjtx.py initdb -s 636
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_636 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.98 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
close 10.10.6.95
|
||||
python wjtx.py changestatus -m maintain -o remove -s 628-631
|
||||
close 10.10.6.99,100,101
|
||||
python wjtx.py changestatus -m maintain -o remove -s 636-643
|
||||
==========================================step 2===============================================
|
||||
10.10.6.96 97
|
||||
python wjtx.py changestatus -m maintain -o add -s 632-635
|
||||
10.10.6.102,103
|
||||
python wjtx.py changestatus -m maintain -o add -s 644-647
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_632 >legend_632.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_633 >legend_633.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_634 >legend_634.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_635 >legend_635.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_644 >legend_644.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_645 >legend_645.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_646 >legend_646.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_647 >legend_647.sql
|
||||
|
||||
python wjtx.py initdb -s 632
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_632 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.96 6381 out/game_redis.script
|
||||
python wjtx.py initdb -s 644
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_644 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.102 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
close 10.10.6.97
|
||||
python wjtx.py changestatus -m maintain -o remove -s 632-635
|
||||
close 10.10.6.103
|
||||
python wjtx.py changestatus -m maintain -o remove -s 644-647
|
||||
=======================================step 3===============================================
|
||||
10.10.6.246 248 250
|
||||
python wjtx.py changestatus -m maintain -o add -s 616-627
|
||||
10.10.6.246,94,96
|
||||
python wjtx.py changestatus -m maintain -o add -s 616-635
|
||||
|
||||
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_620 >legend_620.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_624 >legend_624.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_628 >legend_628.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_632 >legend_632.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 620
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 624
|
||||
close 10.10.6.248 250
|
||||
python wjtx.py changestatus -m maintain -o remove -s 616-627
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 628
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 632
|
||||
close 10.10.6.94,96
|
||||
python wjtx.py changestatus -m maintain -o remove -s 616-635
|
||||
=======================================step 4===============================================
|
||||
10.10.6.11
|
||||
python wjtx.py changestatus -m maintain -o add -s 1-3
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_1 >legend_1.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_2 >legend_2.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_3 >legend_3.sql
|
||||
|
||||
python wjtx.py initdb -s 1
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_1 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.12 6384 out/game_redis.script
|
||||
change game,stage config to 10.10.6.12:6384
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
close 10.10.6.11
|
||||
python wjtx.py changestatus -m maintain -o remove -s 1-3
|
@ -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, 5):
|
||||
check_file = f"server_list_{i}.json"
|
||||
json_data = read_json(check_file)
|
||||
print(f"check {check_file}")
|
||||
|
@ -1,22 +1,42 @@
|
||||
[
|
||||
{
|
||||
"serverid": 628,
|
||||
"redis_host": "10.10.6.94",
|
||||
"serverid": 636,
|
||||
"redis_host": "10.10.6.98",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 629,
|
||||
"redis_host": "10.10.6.94",
|
||||
"serverid": 637,
|
||||
"redis_host": "10.10.6.98",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 630,
|
||||
"redis_host": "10.10.6.95",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 631,
|
||||
"redis_host": "10.10.6.95",
|
||||
"redis_port": 6382
|
||||
}
|
||||
{
|
||||
"serverid": 638,
|
||||
"redis_host": "10.10.6.99",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 639,
|
||||
"redis_host": "10.10.6.99",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 640,
|
||||
"redis_host": "10.10.6.100",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 641,
|
||||
"redis_host": "10.10.6.100",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 642,
|
||||
"redis_host": "10.10.6.101",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 643,
|
||||
"redis_host": "10.10.6.101",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,22 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 632,
|
||||
"redis_host": "10.10.6.96",
|
||||
"serverid": 644,
|
||||
"redis_host": "10.10.6.102",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 633,
|
||||
"redis_host": "10.10.6.96",
|
||||
"serverid": 645,
|
||||
"redis_host": "10.10.6.102",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 634,
|
||||
"redis_host": "10.10.6.97",
|
||||
"serverid": 646,
|
||||
"redis_host": "10.10.6.103",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 635,
|
||||
"redis_host": "10.10.6.97",
|
||||
"serverid": 647,
|
||||
"redis_host": "10.10.6.103",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -5,13 +5,13 @@
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 620,
|
||||
"redis_host": "10.10.6.248",
|
||||
"serverid": 628,
|
||||
"redis_host": "10.10.6.94",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 624,
|
||||
"redis_host": "10.10.6.250",
|
||||
"serverid": 632,
|
||||
"redis_host": "10.10.6.96",
|
||||
"redis_port": 6381
|
||||
}
|
||||
]
|
17
tools/combine_db/tools_conf/server_list_4.json
Normal file
17
tools/combine_db/tools_conf/server_list_4.json
Normal file
@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"serverid": 1,
|
||||
"redis_host": "10.10.6.11",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 2,
|
||||
"redis_host": "10.10.6.11",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 3,
|
||||
"redis_host": "10.10.6.11",
|
||||
"redis_port": 6383
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user