During the sequence of moves while cluster balancing the situation on
cluster may change (e.g. because of adding new instance or because of
instance or node parameters change) and desired moves can become
unprofitable.

Partly prevent this effect by introducing new hbal option
*--avoid-disk-moves=FACTOR* which will admit only profitable enough
disk moves.

Signed-off-by: Oleg Ponomarev <[email protected]>
---
 doc/design-migration-speed-hbal.rst | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 doc/design-migration-speed-hbal.rst

diff --git a/doc/design-migration-speed-hbal.rst 
b/doc/design-migration-speed-hbal.rst
new file mode 100644
index 0000000..ff3fd51
--- /dev/null
+++ b/doc/design-migration-speed-hbal.rst
@@ -0,0 +1,28 @@
+========================================
+Migration speed accounting in Hbal
+========================================
+
+.. contents:: :depth: 2
+
+Hbal usually performs complex sequence of moves during cluster balancing in 
+order to achieve local optimal cluster state. Unfortunately, each move may take
+significant amount of time. Thus, during the sequence of moves the situation 
on 
+cluster may change (e.g. because of adding new instance or because of instance
+or node parameters change) and desired moves can become unprofitable.
+
+Usually disk moves become a bottleneck and require sufficient amount of time.
+:doc:`design-move-instance-improvement` considers disk moves speed in more
+details. Currently, Ganeti have a ``--no-disk-moves`` option preventing disk
+moves during cluster balancing in order to perform fast (but of course non
+optimal) balancing. It may be useful but ideally we need to find a balance
+between optimal configuration and time to reach this configuration.
+
+Avoiding inssignificnt disk moves
+=================================
+
+Allowing only profitable enough disk moves may become a first step to reach 
+a compromise between moves speed and optimal scoring. This can be implemented
+by introducing ``--avoid-disk-moves *FACTOR*`` option which will admit disk 
+moves only if the gain in the cluster metrics is :underline: 'FACTOR' times 
+higher than the gain achievable by non disk moves.
+
-- 
1.9.1

Reply via email to