...
Socket initialization includes, the client sockets creation, connecting to the server socket , sending the client registration message to the server and waiting for registration to be accepted by the server to get the plugin initialization to be succeed. In case of registration failure , the sockets will be closed and plugin initialization results to be failed. The plugin does provide some resiliency when server socket is not connected, i.e. during plugin initialization if it don’t see the server socket, it would keep trying to connect to the server for the plugin interval seconds, if still no connection is established , the plugin will be marked as uninitialized. getting the response.
Plugin read loop:
Once all the After the socket initialization happens , the plugin read loop will be kicked off for every plugin interval seconds to read the stats from DPDK by sending JSON encoded message to the server and waiting for the response. During the read loop if the plugin don’t see the server socket , it would try reconnecting to it for the plugin interval seconds, in case of no success it would result in plugin read failed.
Setup:
Plugin configuration:
...