1. 03 Jul, 2009 3 commits
    • Iustin Pop's avatar
      Fix totalResources avail disk computation · 301789f4
      Iustin Pop authored
      This uses the newly-added Node.availDisk to compute the actual available
      disk correctl, and display the total allocatable disk in hspace.
    • Iustin Pop's avatar
      Add an availDisk node function · fe3d6f02
      Iustin Pop authored
      This function returns the amount of available disk, which depends on
      whether a low disk limit has been configured or not and on the free disk
      space of the node.
    • Iustin Pop's avatar
      Add two new autocomputed vars to Nodes · 836533fa
      Iustin Pop authored
      Currently we track the max disk usage/max vcpus as percentages, however
      sometimes it's easier to check against minimum free disk or maximum
      number of cpus, as units instead of percentages.
      This patch adds two new variables, lo_dsk, hi_cpu, which are recomputed
      whenever we change the m_dsk/m_cpu 'master' values.
  2. 02 Jul, 2009 3 commits
    • Iustin Pop's avatar
      Add a new type for cluster statistics · 1a7eff0e
      Iustin Pop authored
      Currently totalResources returns a 5-tuple of integers. This is not easy
      to handle, as each change on the return type means that each caller must
      be updated.
      This patch adds a new type for cluster stats and uses that instead as
      its return type. This simplifies its callers while complicating only a
      little the computation of the stats.
    • Iustin Pop's avatar
      Enhance hspace resource display · 621de5b7
      Iustin Pop authored
      The display of cluster resources is extracted into a separate function
      and enhanced to display more stats.
    • Iustin Pop's avatar
      Add display of more stats in hspace · e2af3156
      Iustin Pop authored
      This patch changes Cluster.totalResources to compute more details about
      the cluster status, and enhances hspace to display more of these.
  3. 16 Jun, 2009 2 commits
  4. 12 Jun, 2009 5 commits
  5. 11 Jun, 2009 4 commits
    • Iustin Pop's avatar
      Add two new node attributes · 844eff86
      Iustin Pop authored
      Two new min disk free ratio and max cpu usage attributes are added to the
      nodes. These will be used in the future to restrict allocation.
    • Iustin Pop's avatar
      Fix 'unused X' warnings · c6484f0b
      Iustin Pop authored
      This removes some unused functions and imports to cleanup the warnings.
    • Iustin Pop's avatar
      Fix the various monomorphism warning · 78694255
      Iustin Pop authored
      In a few places (e.g. tryRead or any printf call) it's a little bit hard
      to add the correct type signatures, but in the it is possible to fix
      these warnings (which can bite one in subtle cases).
    • Iustin Pop's avatar
      Small changes to the node list output · 3c64b5aa
      Iustin Pop authored
      This is just some cleanup of the node list output, adding pcpu/vcpu
      counters, and making the display slightly nicer.
  6. 10 Jun, 2009 5 commits
  7. 05 Jun, 2009 1 commit
  8. 04 Jun, 2009 1 commit
    • Iustin Pop's avatar
      Fix the ReplacePrimary instance move · 70db354e
      Iustin Pop authored
      During a replace-primary instance move, on the real cluster the instance
      is temporarily started on the secondary, and as such we must check that
      the secondary node can hold it for this duration. Currently the code
      does not, and depending on cluster scoring it will put instances on such
      'bad' secondaries (usually without enough memory).
      This patch fixes this by adding/removing the instance as a primary on
      the secondary node; and then using the result node as the new secondary.
      (Since we're in a monad, we could have just tried the allocation and
      dropped the result, but this is more clear).
  9. 02 Jun, 2009 1 commit
  10. 01 Jun, 2009 15 commits