new combine in 20200713
This commit is contained in:
parent
911d1357bd
commit
4d73902689
@ -29,51 +29,37 @@ 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)
|
||||
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_508 -e"select count(1),server_id from user group by server_id;"
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_512 -e"select count(1),server_id from user group by server_id;"
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_516 -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;"
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_500 -e"select count(1),server_id from user group by server_id;"
|
||||
==========================================step 1===============================================
|
||||
10.10.6.192-193
|
||||
python wjtx.py change_server_status -m maintain -o add -s 508-511
|
||||
10.10.6.196-197
|
||||
python wjtx.py change_server_status -m maintain -o add -s 516-519
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_508 >legend_508.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_509 >legend_509.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_510 >legend_510.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_511 >legend_511.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_516 >legend_516.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_517 >legend_517.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_518 >legend_518.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_519 >legend_519.sql
|
||||
|
||||
python wjtx.py init_wjtx_mysql -s 508
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_508 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.192 6381 out/game_redis.script
|
||||
python wjtx.py init_wjtx_mysql -s 516
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_516 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.196 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 508-511
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 516-519
|
||||
=======================================step 2===============================================
|
||||
10.10.6.194-195
|
||||
python wjtx.py change_server_status -m maintain -o add -s 512-515
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_512 >legend_512.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_513 >legend_513.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_514 >legend_514.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_515 >legend_515.sql
|
||||
|
||||
python wjtx.py init_wjtx_mysql -s 512
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_512 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.194 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 512-515
|
||||
=======================================step 2===============================================
|
||||
10.10.6.168 188 190
|
||||
python wjtx.py change_server_status -m maintain -o add -s 488-507
|
||||
10.10.6.168 192 194
|
||||
python wjtx.py change_server_status -m maintain -o add -s 488-515
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_488 >legend_488.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_500 >legend_500.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_504 >legend_504.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_508 >legend_508.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_512 >legend_512.sql
|
||||
|
||||
python wjtx.py init_wjtx_mysql -s 488
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_488 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.168 6382 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 488
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 500
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 504
|
||||
close 10.10.6.188,190
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 488-507
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 508
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 512
|
||||
close 10.10.6.192,194
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 488-515
|
@ -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, 3):
|
||||
check_file = f"server_list_{i}.json"
|
||||
json_data = read_json(check_file)
|
||||
print(f"check {check_file}")
|
||||
|
@ -1,12 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 488,
|
||||
"redis_host": "10.10.6.182",
|
||||
"serverid": 516,
|
||||
"redis_host": "10.10.6.196",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 496,
|
||||
"redis_host": "10.10.6.186",
|
||||
"serverid": 517,
|
||||
"redis_host": "10.10.6.196",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 518,
|
||||
"redis_host": "10.10.6.197",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 519,
|
||||
"redis_host": "10.10.6.197",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,22 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 508,
|
||||
"redis_host": "10.10.6.192",
|
||||
"serverid": 516,
|
||||
"redis_host": "10.10.6.196",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 509,
|
||||
"redis_host": "10.10.6.192",
|
||||
"serverid": 517,
|
||||
"redis_host": "10.10.6.196",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 510,
|
||||
"redis_host": "10.10.6.193",
|
||||
"serverid": 518,
|
||||
"redis_host": "10.10.6.197",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 511,
|
||||
"redis_host": "10.10.6.193",
|
||||
"serverid": 519,
|
||||
"redis_host": "10.10.6.197",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,22 +1,17 @@
|
||||
[
|
||||
{
|
||||
"serverid": 488,
|
||||
"redis_host": "10.10.6.168",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 508,
|
||||
"redis_host": "10.10.6.192",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 512,
|
||||
"redis_host": "10.10.6.194",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 513,
|
||||
"redis_host": "10.10.6.194",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 514,
|
||||
"redis_host": "10.10.6.195",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 515,
|
||||
"redis_host": "10.10.6.195",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
22
tools/combine_db/tools_conf/server_list_2.json.old
Normal file
22
tools/combine_db/tools_conf/server_list_2.json.old
Normal file
@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 520,
|
||||
"redis_host": "10.10.6.198",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 521,
|
||||
"redis_host": "10.10.6.198",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 522,
|
||||
"redis_host": "10.10.6.199",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 523,
|
||||
"redis_host": "10.10.6.199",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,17 +0,0 @@
|
||||
[
|
||||
{
|
||||
"serverid": 488,
|
||||
"redis_host": "10.10.6.168",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 500,
|
||||
"redis_host": "10.10.6.188",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 504,
|
||||
"redis_host": "10.10.6.190",
|
||||
"redis_port": 6381
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user