- Dec 01, 2010
-
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
Iustin Pop authored
For now, we don't support instances allocated across two groups, and we will reject such clusters. The isClusterConsistent function will return a list of inconsistent instances, potentially allowing operation without touch them (but only the rest). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
Iustin Pop authored
Unittests included. The function will be needed for consistency checks in the algorithms. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
Iustin Pop authored
This is to pottentially allow easier changes later. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
- Nov 28, 2010
-
-
Iustin Pop authored
-
- Nov 24, 2010
-
-
Iustin Pop authored
This depends on future support from Ganeti (2.4+). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
Iustin Pop authored
This makes the code incompatible with JSON files from Ganeti pre-2.4. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
Iustin Pop authored
Compatibility with old text files is kept by using the default UUID if the file (or even some records) don't have a UUID. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
Iustin Pop authored
This makes the code incompatible with Ganeti pre-2.4. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
Iustin Pop authored
This is not used anywhere yet, and the backend are all just adding the default UUID, not the real one. The patch also allows displaying the group UUID in the node list. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
Iustin Pop authored
This will be used as a placeholder for the cases when we need a UUID (any UUID), but we don't have one handy. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
- Nov 23, 2010
-
-
Iustin Pop authored
-
Iustin Pop authored
This does just two passes, instead of three, over the list. This reduces the overall runtime well enough (~25%) in some tests, but it's not reproducible using profiling, so I don't know how much the function itself is being sped-up. Note: this is written via `seq`s, and not BangPatterns. Since it's just one case, adding BangPatterns just for it wasn't a big gain. Thanks to Lécz Balázs for the impetus to improve this! Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
Iustin Pop authored
Currently, hbal does a one-two signal handling, where the first signal causes graceful termination, and the second one an immediate on (either SIGINT or SIGTERM can be used, interchangeably). However, this poses a timing problem: if two programs want to send a graceful termination request, they cannot do that without careful coordination. To fix this, we change to code to handle the signal separately: SIGINT (^C) sends graceful termination, while SIGTERM sends immediate termination. This should allow easier controlling of hbal. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
- Nov 19, 2010
-
-
Iustin Pop authored
While we don't actually have IO code in the Simu loader, we do have the same interface. So we move the code again to a separate parseData function which is exported.
-
Iustin Pop authored
-
Iustin Pop authored
The change is similar to the text loader change.
-
Iustin Pop authored
This change, which will be followed by similar changes in the other loaders, splits the parsing of the data from the actual loading from disk. Since the parsing doesn't usually involve IO actions, we will be able to better test the parsing. The loading becomes a smaller part of the code and thus inability to test it has a smaller impact.
-
- Nov 11, 2010
-
-
Iustin Pop authored
This break compatibility with Ganeti pre-2.3.
-
- Nov 09, 2010
-
-
Iustin Pop authored
* devel-0.2: Fix tag exclusion weight
-
Iustin Pop authored
Currently, the tag exclusion metric has a weight of one, which means there might be cases where we won't move instances around because it upsets the cluster metrics. However, we do want to make a higher effort for cleaning up tag collisions, so we increase the weight to an empirically-determined value of 2.
-
- Oct 26, 2010
-
-
Iustin Pop authored
Pandoc 1.5.x uses the locale information to parse its input files (only 1.5, pre and post version use always UTF-8). Hence we need to enforce a UTF-8 locale for proper parsing of input files.
-
- Oct 25, 2010
-
-
Iustin Pop authored
This simplifies the maintenance of the man pages, and unifies the rst-to-* converter to pandoc.
-
- Oct 21, 2010
-
-
Iustin Pop authored
This is a work in progress, will be modified along with the progress of Ganeti 2.3.
-
- Oct 07, 2010
-
-
Iustin Pop authored
-
Iustin Pop authored
-
- Oct 06, 2010
-
-
Iustin Pop authored
Currently, the key metrics/tiered spec computations show the virtual cpu count. However, since we do have a maximum ration Vcpu/Pcpu, we can also show the “normalized” cpu count, i.e. the equivalent physical cpu count corresponding to the virtual ones.
-
Iustin Pop authored
-
- Sep 15, 2010
-
-
Iustin Pop authored
Currently, hbal will abort immediately when requested (^C, or SIGINT, etc.). This is not nice, since then the already started jobs need to be tracked manually. This patch adds a signal handler for SIGINT and SIGTERM, which will, the first time, simply record the shutdown request (and hbal will then exit once all jobs in the current jobset finish), and at the second request, will cause an immediate exit.
-
- Sep 03, 2010
-
-
Iustin Pop authored
-
Iustin Pop authored
Also adds them in hbal.
-
Iustin Pop authored
Recent hbal seems to run many steps for small improvements (< 1e-3), so we should stop early in this case. We add a new option (-g), that will be used for the minimum gain during balancing. This check will only become active when the cluster score is below a threshold (--min-gain-limit), so as to not stop rebalances too early.
-
- Sep 02, 2010
-
-
Iustin Pop authored
This will make the automated builds flag any problems.
-
Iustin Pop authored
These are just variations of the standard debug, but are provided for simpler code, since lazyness is something causing non-computation of debug statements.
-
Iustin Pop authored
The addition of a new secondary on a node is doing two memory tests: - in strict mode, reject if we get into N+1 failure - reject if the new instance memory is greater than the free memory (not available memory) on the node The last check is designed to ensure that, irrespective of the other secondary instances on this node, we are able to failover/migrate the newly-added instance. However, we should allow this, if the instances comes from an offline node, which doesn't offer anything (not even disk replication). Therefore this patch makes this check conditional on the strict mode.
-
Iustin Pop authored
-
- Aug 30, 2010
-
-
Iustin Pop authored
-
Iustin Pop authored
Otherwise the saved cluster state and the in-memory one are wrong.
-
Iustin Pop authored
This also uncovered a few issues with the allocation model (instances not being marked up, etc.). Compared to hbal, hspace will generate either one or two files (for both the standard and the tiered allocation mode), depending on the input parameters.
-
Iustin Pop authored
The Cluster.iterateAlloc and tieredAlloc functions are changed to also return the updated instance list, since it is needed to have a “full” cluster view.
-