Answer the question
In order to leave comments, you need to log in
Need help running rpc-proxy in kphp-kdb?
Having proved no on the engine https://github.com/vk-com/kphp-kdb/tree/master/rpc...
Create a binlog:
/usr/local/src/kphp-kdb/scripts/create_binlog.sh 0xf9a90101 1 0 > /var/lib/engine/rpc.bin
chown -R kitten:kitten /var/lib/engine/
execute rpc-proxy
arg1 /etc/engine/clusterrpc.conf
-p 11259
-a rpc
-y 300
-vvv
cluster_text {
proto tcp;
server 127.0.0.1:11200;
schema text;
min_connections 1;
max_connections 1000;
timeout 1000;
#step 0;
new_id 1;
extension firstint;
#extension clear_flags;
#extension skip_response_inderect;
#extension points;
#extension secure_send;
#extension secure_receive;
#extension double_send;
#extension double_receive;
#extension secondint;
#extension_params ;
#mode firstint;
}
cluster_lists {
id 123;
proto tcp;
server 127.0.0.1:11201;
# [email protected]:11202
schema lists;
min_connections 1;
max_connections 1000;
timeout 1000;
new_id 11;
extension firstint;
}
$rpcMsg[]=array('rpcProxy.getClusters');
$rpcMsg[]=array('rpcProxy.getClusterSize',0);
$rpcMsg[]=array('rpcProxy.getClusterServers',0);
$rpcMsg[]=array('rpcProxy.getClusterServers',123);
НО, если отправить на порт 11259 запрос к text-engine вида:
$rpcMsg[]=array('text.sendMessage', $uid,
(1 « 4) + (1 « 5) + (1 « 7) ,# text, flags, peer_id
array(
'text' => 'сообщение привет ололо ',
'flags' => $flags,
'peer_id' => $peer_id
)
)
Array
(
[0] => Array
(
[__error] => Can not find working connection to target
[__error_code] => -3002
)
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question