Statistics
| Branch: | Tag: | Revision:

root / src @ 8df5db55

# Date Author Comment
38f63ae6 02/22/2009 02:18 pm Iustin Pop

Change the total disk/mem to Double

Since we only use the totals for computations, and we always convert
them via fromIntegral, let's just store them directly as Doubles.

962367fe 02/22/2009 02:15 pm Iustin Pop

A no-code change s/disk/dsk/

This just makes indendation nicer in many expressions.

0335fe4a 02/22/2009 02:05 pm Iustin Pop

Compute the p_mem / p_dsk statically

This patch changes the computation of p_mem / p_dsk from on-demand
(whenever the cluster stats are computed) to after-modify (after a node
is modified, we update its stats). This brings a god speed-up as only
one node or two are usually changed between cluster-wide stats are...

d53264c0 02/15/2009 03:53 pm Iustin Pop

Documentation updates

9dc6023f 02/15/2009 03:48 pm Iustin Pop

Simplify the checkInstanceMove function

This patch flattens the two folds into one, by simply building the whole
list of moves instead of the double recursion (nodes and the each
node's moves). This has no functional change, but it's much cleaner.

256810de 02/15/2009 03:40 pm Iustin Pop

A small optimization in node computation

Currently we always compute the available node list for moves (for an
instances) based on the nodes of the initial table. This works find,
however is a repeated calculation.

We optimize this by passing a node list (of indexes, not full objects),...

1fd47ca2 02/15/2009 03:40 pm Iustin Pop

Container: add a 'keys' function

d4f62d4e 02/15/2009 03:35 pm Iustin Pop

Replace a foldl by foldl'

4e25d1c2 02/15/2009 03:10 pm Iustin Pop

Split checkMove into two

This cleans up and splits the individual instance move into a separate function.

aaaa0e43 02/15/2009 02:58 pm Iustin Pop

Change the balancing algorithm

This patch changes the balancing algorithm to not iterate linearly over
the instances (in a random, but fixed order), instead selecting at each
step the best next move. This should allow a better score (most of the
time), and usually also a shorter solution.

dd4c56ed 02/14/2009 10:05 am Iustin Pop

Add RAPI support to hn1

This patch moves a function to Utils and changes hn1 to be able to take
data from RAPI.

27f96567 02/14/2009 10:00 am Iustin Pop

Implement oneline-output for hbal

9b9a5931 02/14/2009 09:51 am Iustin Pop

Do not try both http and https against the server

This patch changes the tryRapi function so that if the http request
succeeded, we don't try https too.

d7cf83bf 02/14/2009 09:46 am Iustin Pop

Simplify some JSON transforms

... hopefully this is more clear.

aab26f2d 02/13/2009 11:26 pm Iustin Pop

Add compatibility with rapi v1

The patch adds compatibility with RAPI v1, and this required some new
JSON functions as valFromObj doesn't behave nicely.

Some other unrelated changes were done too.

a30b2f5b 02/13/2009 10:28 am Iustin Pop

Implement reading data from RAPI v2

1b7cf8ca 02/13/2009 10:27 am Iustin Pop

Some more utility functions

e5f02e15 02/13/2009 10:26 am Iustin Pop

Fix a bug in Cluster.fixNodes

We need to lookup the moving accumulator, of course.

b8b9a53c 02/12/2009 10:14 pm Iustin Pop

Make RAPI return the same data format as gnt-*

This patch changes the RAPI endpoint return the same data format as the
input files. This will allow using it instead of the files.

01f6a5d2 02/12/2009 09:55 pm Iustin Pop

Change the input file formats

This patch changes the format of the input node and instance lists. It
removes the list of primary and secondary instances from the nodes, and
adds the primary and secondary nodes to the instance list.

This is done so that we can have the same input data from commands as...

a7654563 02/11/2009 10:37 pm Iustin Pop

Initial support for reading from RAPI

e4f08c46 01/28/2009 01:09 pm Iustin Pop

Initial import

This is the initial import of release 0.0.3.