Statistics
| Branch: | Tag: | Revision:

root / src @ 256810de

Name Size
Cluster.hs 23.4 kB
Container.hs 1.9 kB
Instance.hs 1.8 kB
Makefile 220 Bytes
Node.hs 6.7 kB
PeerMap.hs 1.8 kB
Rapi.hs 5 kB
Utils.hs 2.1 kB
hbal.hs 6.6 kB
hn1.hs 5.9 kB

Latest revisions

# Date Author Comment
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.

View revisions

Also available in: Atom