new combine plan in 20210519
This commit is contained in:
parent
8f1bf2e195
commit
97345e8222
@ -31,32 +31,44 @@ clear_mysql:
|
||||
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_456 -e"select count(1),server_id from user group by server_id;"
|
||||
====================================================step 1===============================================
|
||||
10.10.6.166-167
|
||||
python wjtx.py change_server_status -m maintain -o add -s 456-459
|
||||
10.10.6.168-169
|
||||
python wjtx.py change_server_status -m maintain -o add -s 460-463
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_456 >legend_456.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_457 >legend_457.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_458 >legend_458.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_459 >legend_459.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_460 >legend_460.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_461 >legend_461.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_462 >legend_462.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_463 >legend_463.sql
|
||||
|
||||
python wjtx.py init_wjtx_mysql -s 456
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_456 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.166 6381 out/game_redis.script
|
||||
python wjtx.py init_wjtx_mysql -s 460
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_460 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.168 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 456-459
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 460-463
|
||||
====================================================step 2===============================================
|
||||
10.10.6.154,162,164
|
||||
python wjtx.py change_server_status -m maintain -o add -s 432-455
|
||||
10.10.6.170,171
|
||||
python wjtx.py change_server_status -m maintain -o add -s 464-467
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_464 >legend_464.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_465 >legend_465.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_466 >legend_466.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_467 >legend_467.sql
|
||||
|
||||
python wjtx.py init_wjtx_mysql -s 464
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_464 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.170 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 464-467
|
||||
====================================================step 2===============================================
|
||||
10.10.6.134,166
|
||||
python wjtx.py change_server_status -m maintain -o add -s 432-459
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_432 >legend_432.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_448 >legend_448.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_452 >legend_452.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_456 >legend_456.sql
|
||||
|
||||
python wjtx.py init_wjtx_mysql -s 432
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_432 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.154 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.134 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 432
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 448
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 452
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 432-455
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 456
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 432-459
|
@ -28,7 +28,7 @@ def read_json(filename):
|
||||
|
||||
def main():
|
||||
csv_data = get_csv()
|
||||
for i in range(1, 3):
|
||||
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,22 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 456,
|
||||
"redis_host": "10.10.6.166",
|
||||
"serverid": 460,
|
||||
"redis_host": "10.10.6.168",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 457,
|
||||
"redis_host": "10.10.6.166",
|
||||
"serverid": 461,
|
||||
"redis_host": "10.10.6.168",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 458,
|
||||
"redis_host": "10.10.6.167",
|
||||
"serverid": 462,
|
||||
"redis_host": "10.10.6.169",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 459,
|
||||
"redis_host": "10.10.6.167",
|
||||
"serverid": 463,
|
||||
"redis_host": "10.10.6.169",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
||||
|
@ -1,17 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 432,
|
||||
"redis_host": "10.10.6.154",
|
||||
"serverid": 464,
|
||||
"redis_host": "10.10.6.170",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 448,
|
||||
"redis_host": "10.10.6.162",
|
||||
"redis_port": 6381
|
||||
"serverid": 465,
|
||||
"redis_host": "10.10.6.170",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 452,
|
||||
"redis_host": "10.10.6.164",
|
||||
"serverid": 466,
|
||||
"redis_host": "10.10.6.171",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 467,
|
||||
"redis_host": "10.10.6.171",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
||||
|
12
tools/combine_db/tools_conf/server_list_3.json
Normal file
12
tools/combine_db/tools_conf/server_list_3.json
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"serverid": 432,
|
||||
"redis_host": "10.10.6.134",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 456,
|
||||
"redis_host": "10.10.6.166",
|
||||
"redis_port": 6381
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user