Gluster Events APIs are available with Gluster 3.9 release. This project is created as an experiment to showcase the capabilities of Gluster Events APIs , Dashboard shows realtime Geo-replication status without refreshing the page.
Note: This is not ready for production use Yet!Real-time notifications/UI change only works with Gluster 3.9 or above, but dashboard can work with older versions of gluster(But as static display, manual page reload is required to check current status).
InstallInstall the app in any one node of Cluster.
git clone https://github.com/aravindavk/gluster-georepdash.git cd gluster-georepdash/Install the following python dependencies using,
sudo pip install flask flask_sockets glustercliInstall elm and bower using,
sudo npm install -g bower elmUpdate the serverName in App.elm and then generate static/app.js using,(editing serverName should be automatic, this is code bug! will fix later)
cd gluster-georepdash/ elm-package install elm-make App.elm --output static/app.jsInstall purecss for style using,
cd gluster-georepdash/static bower install
UsageRun main.py , to start the app server. Dashboard can be accessed using http://nodename:5000
Test and register this node as Events API subscriber by calling webhook-add command. Read more about starting Events service here
gluster-eventsapi webhook-test http://nodename:5000/listenIf Webhook status is OK from all nodes, then add webhook using,
gluster-eventsapi webhook-add http://nodename:5000/listenThats all! If everything is okay, dashboard will show realtime Geo-replication status.
Screenshots
UI Changes when a Geo-rep session is stopped from anywhere in Cluster

UI Changes when a Geo-rep session goes to Faulty
UI/Dashboard Notes UI is very raw since it is created for demo purpose Frontend developed using Elm No event available for change in "Last Synced" column, So that column value will not match with realtime output from status command. Refresh the page to see the latest status.