From be22f6641ba4f4bc82a3438ae22d2a505ad4df01 Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Thu, 10 Sep 2020 15:27:37 +0200 Subject: [PATCH] F OpenNebula/one#2410: VM autorefresh Signed-off-by: Frederick Borges --- source/deployment/sunstone_setup/sunstone.rst | 4 ++++ source/integration/references/sunstone_dev.rst | 11 +++++++++++ .../release_notes_community/whats_new.rst | 1 + 3 files changed, 16 insertions(+) diff --git a/source/deployment/sunstone_setup/sunstone.rst b/source/deployment/sunstone_setup/sunstone.rst index 36e2dc47e6..15dcab816a 100644 --- a/source/deployment/sunstone_setup/sunstone.rst +++ b/source/deployment/sunstone_setup/sunstone.rst @@ -144,6 +144,10 @@ Available options are: +---------------------------+-----------------------------------------------------------------------------------------------+ | :threshold_high | Minimum percentage value for red color on thresholds | +---------------------------+-----------------------------------------------------------------------------------------------+ +| :zeromq_server | Endpoint to connect to the ZeroMQ server. | ++---------------------------+-----------------------------------------------------------------------------------------------+ +| :autorefresh_ip | IP address where the sunstone is running. | ++---------------------------+-----------------------------------------------------------------------------------------------+ .. note:: To use Sunstone with IPv6 only systems and thin HTTP sever, use the full IPv6 address in the field `:host`. If you need to set the localhost address (::1) or the unspecified address (::) please diff --git a/source/integration/references/sunstone_dev.rst b/source/integration/references/sunstone_dev.rst index 9344892339..0a87ba37ec 100644 --- a/source/integration/references/sunstone_dev.rst +++ b/source/integration/references/sunstone_dev.rst @@ -354,3 +354,14 @@ After the installation you can initialize ESLint with your own rules or use Open The usage of ESLint is not mandatory but we recomend our contributors to use it, to be sure that the code is standardiced. More information about `ESlint `__ project. + +.. _autorefresh: + +Autorefresh +================================================================================ + +Sunstone is on constant communication with the ZeroMQ server of OpenNebula, which means no more clicks on the refresh button at the VM instances view. + +It works in a simple way when you execute the command sunstone-server start Sunstone will create a thread which is in charge of receiving all the information about the VMs and send it back to the front-end where the javascript functions update the views when they receive new information. + +In order to configure the autorefresh feature to use non standard values, you need to tune the parameters ":zeromq_server", ":autorefresh_ip" in :ref:`sunstone-server.conf `. \ No newline at end of file diff --git a/source/intro_release_notes/release_notes_community/whats_new.rst b/source/intro_release_notes/release_notes_community/whats_new.rst index e2bce2644f..acee55602d 100644 --- a/source/intro_release_notes/release_notes_community/whats_new.rst +++ b/source/intro_release_notes/release_notes_community/whats_new.rst @@ -27,6 +27,7 @@ Authentication Sunstone ================================================================================ +- VM info autorefresh with ZeroMQ. Check :ref:`this ` for more information. Scheduler