Install Glusterd Plus SDK by running the following command.
gem install glusterd_plus
Start the Glusterd Plus service(If not started) in at least one node of the Cluster.
systemctl start glusterp
require"glusterd_plus"conn=GlusterdPlus::Connection.new("http://localhost:3000")conn.add_peer("server2.gluster")putsconn.list_peersconn.peer("server2.gluster").remove