Continue the installation from last time.
The installed protobuf version may be wrong, I changed to version 3.9.1. Then cover it.
Repeat again, the installation is successful.
[-Wdeprecated-declarations]
if ((res = socket->recv(&msgs.back(), ZMQ_DONTWAIT)) == false) return false;
^
/home/wg/anna/build/vendor/zeromqcpp/zeromqcpp-prefix/src/zeromqcpp/zmq.hpp:1926:10: note:
'recv' has been explicitly marked deprecated here
bool recv(message_t *msg_, int flags_ = 0)
^
/home/wg/anna/kvs/include/zmq_util.cc:51:13: warning: 'getsockopt' is
deprecated: from 4.7.0, use `get` taking option from zmq::sockopt
[-Wdeprecated-declarations]
socket->getsockopt(ZMQ_RCVMORE, static_cast<void*>(&more), &more_size);
^
/home/wg/anna/build/vendor/zeromqcpp/zeromqcpp-prefix/src/zeromqcpp/zmq.hpp:1669:10: note:
'getsockopt' has been explicitly marked deprecated here
void getsockopt(int option_, void *optval_, size_t *optvallen_) const
^
7 warnings generated.
[ 97%] Building CXX object kvs/CMakeFiles/kvs_proxy.dir/include/socket_cache.cc.o
[ 98%] Linking CXX executable kvs_proxy
[100%] Built target kvs_proxy
This is a successful compilation.
5.ip settings
1. Install under the anna package, create a conf folder, and create proxy, server, and user folders under conf/.
2. According to the instructions, create a txt file with the corresponding name. Click the situation, all ips are the ips of the machine. View the ifconfig command on ubuntu
For each server node:
- The ip of the current node should be stored in
conf/server/server_ip.txt
. - The ip of the seed node should be stored in
conf/server/seed_server.txt
. The seed node can be any proxy node. - The ip of all the proxy nodes should be stored in
conf/server/proxy_address.txt
. Each line contains a single proxy ip.
For each proxy node:
- The ip of the current node should be stored in
conf/proxy/proxy_ip.txt
.
For each user/benchmark node:
- The ip of the current node should be stored in
conf/user/user_ip.txt
. - The ip of all the proxy nodes should be stored in
conf/user/proxy_address.txt
. Each line contains a single proxy ip.
6. Run
To illustrate, simulate a distributed environment. Every service needs a code.
So create 3 folders, the code in anna_proxy, anna_server, anna_user contains all anna code.
carried out:
Please start the proxy first, and then the server and client.
- Start a proxy by running
./build/kvs/kvs_proxy
. - Start a server by running
./build/kvs/kvs_server
. - Start a client by running
./build/kvs/kvs_user
.
The accepted input formats are GET $key
and PUT $key $value
.