1
This commit is contained in:
parent
4e20e37d33
commit
d4b35ec5ce
@ -1,48 +1,46 @@
|
||||
========================================check combine data=========================================
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_836 -e"select count(1),server_id from user group by server_id;"
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_844 -e"select count(1),server_id from user group by server_id;"
|
||||
==========================================step 1===============================================
|
||||
10.10.6.199-200
|
||||
python wjtx.py changestatus -m maintain -o add -s 836-839
|
||||
10.10.6.203-204
|
||||
python wjtx.py changestatus -m maintain -o add -s 844-847
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_844 >legend_844.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_845 >legend_845.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_846 >legend_846.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_847 >legend_847.sql
|
||||
|
||||
python wjtx.py initdb -s 844
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_844 -e"source all.sql"
|
||||
|
||||
python import_redis.py 10.10.6.203 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
close 10.10.6.204
|
||||
python wjtx.py changestatus -m maintain -o remove -s 844-847
|
||||
==========================================step 2===============================================
|
||||
10.10.6.205-206
|
||||
python wjtx.py changestatus -m maintain -o add -s 848-851
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_848 >legend_848.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_849 >legend_849.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_850 >legend_850.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_851 >legend_851.sql
|
||||
|
||||
python wjtx.py initdb -s 848
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_848 -e"source all.sql"
|
||||
|
||||
python import_redis.py 10.10.6.205 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
close 10.10.6.206
|
||||
python wjtx.py changestatus -m maintain -o remove -s 848-851
|
||||
==========================================step 3===============================================
|
||||
10.10.6.199,201
|
||||
python wjtx.py changestatus -m maintain -o add -s 836-843
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_836 >legend_836.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_837 >legend_837.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_838 >legend_838.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_839 >legend_839.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_840 >legend_840.sql
|
||||
|
||||
python wjtx.py initdb -s 836
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_836 -e"source all.sql"
|
||||
|
||||
python import_redis.py 10.10.6.199 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
close 10.10.6.200
|
||||
python wjtx.py changestatus -m maintain -o remove -s 836-839
|
||||
==========================================step 2===============================================
|
||||
10.10.6.201-202
|
||||
python wjtx.py changestatus -m maintain -o add -s 840-843
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_840 >legend_840.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_841 >legend_841.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_842 >legend_842.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_843 >legend_843.sql
|
||||
|
||||
python wjtx.py initdb -s 840
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_840 -e"source all.sql"
|
||||
|
||||
python import_redis.py 10.10.6.201 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
close 10.10.6.202
|
||||
python wjtx.py changestatus -m maintain -o remove -s 840-843
|
||||
==========================================step 3===============================================
|
||||
10.10.6.185,191,197
|
||||
python wjtx.py changestatus -m maintain -o add -s 808-835
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_808 >legend_808.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_820 >legend_820.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_832 >legend_832.sql
|
||||
|
||||
python wjtx.py initdb -s 808
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_808 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.185 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 808
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 820
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 832
|
||||
close 10.10.6.191,197
|
||||
python wjtx.py changestatus -m maintain -o remove -s 808-835
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 836
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 840
|
||||
close 10.10.6.201
|
||||
python wjtx.py changestatus -m maintain -o remove -s 836-843
|
||||
|
@ -1,22 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 836,
|
||||
"redis_host": "10.10.6.199",
|
||||
"serverid": 844,
|
||||
"redis_host": "10.10.6.203",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 837,
|
||||
"redis_host": "10.10.6.199",
|
||||
"serverid": 845,
|
||||
"redis_host": "10.10.6.203",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 838,
|
||||
"redis_host": "10.10.6.200",
|
||||
"serverid": 846,
|
||||
"redis_host": "10.10.6.204",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 839,
|
||||
"redis_host": "10.10.6.200",
|
||||
"serverid": 847,
|
||||
"redis_host": "10.10.6.204",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,22 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 840,
|
||||
"redis_host": "10.10.6.201",
|
||||
"serverid": 848,
|
||||
"redis_host": "10.10.6.205",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 841,
|
||||
"redis_host": "10.10.6.201",
|
||||
"serverid": 849,
|
||||
"redis_host": "10.10.6.205",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 842,
|
||||
"redis_host": "10.10.6.202",
|
||||
"serverid": 850,
|
||||
"redis_host": "10.10.6.206",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 843,
|
||||
"redis_host": "10.10.6.202",
|
||||
"serverid": 851,
|
||||
"redis_host": "10.10.6.206",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,17 +1,12 @@
|
||||
[
|
||||
{
|
||||
"serverid": 808,
|
||||
"redis_host": "10.10.6.185",
|
||||
"serverid": 836,
|
||||
"redis_host": "10.10.6.199",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 820,
|
||||
"redis_host": "10.10.6.191",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 832,
|
||||
"redis_host": "10.10.6.197",
|
||||
"serverid": 840,
|
||||
"redis_host": "10.10.6.201",
|
||||
"redis_port": 6381
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user