You are on page 1of 1

nginx 限流某个 ip

1064911112690

一、billing_base_info 表:
key = PartId|zone_code|serv_id|info_seq
PartId = mod(serv_id,50) #注意: mod(serv_id,50)取模不足两位数要前面补 0
zone_code:025 (取固定值)

1、 hbase 数据查询:
java com.eshore.icps.tools.Export real:billing_base_info "49|025|
993100913348643699"

233.203real
2、 hbase 拆机用户旧数据字段更新(先用步骤 1 查询出 info_seq)
update billing_base_info set acc_state_id='2HB' where serv_id=995100503144965123
and id=181732496919 ;

#重新复机是发新的 servid 不是老的


insert into billing_active_offline_event(info_seq, serv_id, event_type,
event_flag, event_date, state) values
(seq_active_call_event.nextval,995100503144965123, 2, 1, sysdate, 0);

put 'real:billing_base_info','23|025|995100503144965123|
181732496920','info:acc_state_id','2HB'
put 'real:billing_base_info','23|025|995100503144965123|
181732496920','info:state','F0X'

-- 查看结果:get 'real:billing_base_info','01|025|993100913348008801|407205100675'

get 'real:billing_base_info','49|025|999900501193064249|201402738742'

--闫建明
到采预 real@10.142.233.203 主机
原来的查询方式改下:
get 'real:billing_base_info','41|025|995100912472541258|397425122460'

改为
ScanPrefix 'real:billing_base_info','08|025|995100912472541258'

数据库修改:
update billing_base_info set acc_state_id = '2HB' where SERV_ID =
999900501193064249

You might also like