Skip to content
Snippets Groups Projects
  1. Jan 07, 2010
  2. Dec 28, 2009
    • Iustin Pop's avatar
      Fix small typo · 0ccaab44
      Iustin Pop authored
      This was found, of all things, via lintian during the Debian packaging…
      0ccaab44
  3. Dec 11, 2009
    • Iustin Pop's avatar
      Convert n1_score metric from % to count · 0c860cff
      Iustin Pop authored
      This increases the priority of fixing N+1 failures compared to balancing
      metrics.
      0c860cff
    • Iustin Pop's avatar
      Metric: count of primary instances/offline nodes · 673f0f00
      Iustin Pop authored
      This helps with evacuation/failover of instances on 2-node clusters with
      one one offline.
      673f0f00
    • Iustin Pop's avatar
      Offline instance metric: change from % to count · e4d31268
      Iustin Pop authored
      Currently we use the offline instance percentage (with range [0, 1]),
      but this is not good, since we want the evacuation of such instances to
      have a high priority; therefore we change this to a count of offline
      instances, which has higher weight than a metric with range [0, 1].
      e4d31268
    • Iustin Pop's avatar
      Use the oper_ram field if available · 6402a260
      Iustin Pop authored
      For the RAPI and LUXI backends, we can get the actual memory usage (if
      instances are running) via the oper_ram, whereas backend/memory only
      tell what the instance will use at the next boot.
      
      Not using oper_ram means that the node model is flawed and we consider
      wrong values for the instance's memory (resulting sometimes in hilarious
      values such as x_mem = -700 MB).
      6402a260
  4. Dec 09, 2009
    • Iustin Pop's avatar
      rapi, luxi: treat drained nodes as offline · b45222ce
      Iustin Pop authored
      Commit e97f211e changed the iallocator backend to handle drained nodes as
      offline. This commit completes that change by making the rapi and luxi
      backend do the same (the text backend ignores any '?' values which are
      returned by ganeti when nodes have problems, so it doesn't need this
      change).
      b45222ce
  5. Dec 02, 2009
  6. Dec 01, 2009
  7. Nov 27, 2009
  8. Nov 17, 2009
    • Iustin Pop's avatar
      Collapse the statistical functions into one · 185297fa
      Iustin Pop authored
      This allows us to get rid of two duplicate list length computations,
      with a minor speedup.
      185297fa
    • Iustin Pop's avatar
      Specialize the math functions · e27eb8ab
      Iustin Pop authored
      The statistics functions are currently defined as polymorphic with a
      Floating constraint. Changing this to monomorphic on Double type makes
      them stricter and much more performant (~70% speedup). This is a cheap
      way to recoup some of the loses incurred by the recent proliferation of
      metrics.
      e27eb8ab
    • Iustin Pop's avatar
      Use conflicting primaries count in cluster score · d844fe88
      Iustin Pop authored
      This small patch adds the number of conflicting primaries in the cluster
      score. This is different from the other non-CV metrics where we usually
      compute the percentage of failing instances (for that metric); but for a
      somewhat big cluster, 1-2% failing instances will be a too small value
      to cause the relocation of conflicting instances (future patches will
      also switch other non-CV metrics to this method).
      d844fe88
    • Iustin Pop's avatar
      1e4b5230
    • Iustin Pop's avatar
      Add a new node list field · b2999982
      Iustin Pop authored
      This patch adds a new node list field (ptags), showing the primary
      instance tags.
      b2999982
    • Iustin Pop's avatar
      Add a command-line option to filter exclusion tags · 0f15cc76
      Iustin Pop authored
      Since we don't want all instance tags to be used for exclusion, we add a
      command line option to filter on these. Since the iallocator protocol
      cannot accept command line options, currently it's not possible to
      specify these for hail, and thus it will never use any exclusion tags.
      0f15cc76
    • Iustin Pop's avatar
      Introduce tag-based exclusion of primary instances · 5f0b9579
      Iustin Pop authored
      This patch introduces exclusion of primary instances based on tags. This
      is incomplete as currently all tags are being excluded, and we don't
      optimise towards relocation of instances sharing tags on the same node.
      5f0b9579
  9. Nov 11, 2009
  10. Nov 10, 2009
    • Iustin Pop's avatar
      Allow overriding the field list in -p · e98fb766
      Iustin Pop authored
      The print nodes option can now accept an optional field list to
      customise the output. This is ugly, since the field names do not match
      the header names, but it is at least barely customisable (at runtime).
      e98fb766
  11. Nov 09, 2009
  12. Nov 06, 2009
    • Iustin Pop's avatar
      Enhance the error reporting for Rapi and Luxi · 117dc2d8
      Iustin Pop authored
      Currently the JSON conversion in Rapi and Luxi are giving something
      like:
        Error: failed to load data. Details:
        Unable to read Double
      
      This doesn't tell one where the error is (in a node specification? and
      which node? etc.). This patch annotates such messages with the owner
      node:
        Error: failed to load data. Details:
        Node 'node1' key 'mtotal': Unable to read Double
      
      For errors during parsing of the node/instance name (unlikely, but
      still), the output is:
        Error: failed to load data. Details:
        Parsing new node key 'name': Unable to read String
      117dc2d8
    • Iustin Pop's avatar
      Change the Utils.fromObj signature · 262f3e6c
      Iustin Pop authored
      Currently the fromObj function takes a JSON object which is then
      converted into a list of (String, JSValue) in which we make a lookup.
      However, most of the callers of this function call it repeatedly on the
      same object, which means we do the object→list conversion repeatedly.
      
      This patch converts it to take directly the list, and converts its
      callers to do the conversion themselves (and only once).
      
      While this is not in the hot-path today, it would be if we ever were to
      process much data over Luxi (or RAPI), and is a good cleanup in any
      case.
      262f3e6c
    • Iustin Pop's avatar
      A small style change in Node.hs · 12e6776a
      Iustin Pop authored
      This imports PeerMap as P and reindents some lines.
      12e6776a
    • Iustin Pop's avatar
      hspace: show tiered-alloc stats in the output · 83ad1f3c
      Iustin Pop authored
      This is a first attempt to get a readable output of tiered allocation
      stats in hspace's output. Not very nice, but it should be somewhat
      parseable.
      83ad1f3c
    • Iustin Pop's avatar
      Make some CLI options more consistent · 7f4e37f0
      Iustin Pop authored
      Both the simulate and the tiered allocation mode take a machine spec on
      input via a comma-separated list. This patch makes this a little bit
      more consistent (always use disk,ram,cpu in this order).
      7f4e37f0
    • Iustin Pop's avatar
      Add support for shrinking instance specs · c8db97e5
      Iustin Pop authored
      This patch adds a function that, for some given failure modes, shrinks a
      given instance in the hope that allocation will succeed when retried
      with the new spec.
      c8db97e5
  13. Oct 30, 2009
    • Iustin Pop's avatar
      Rework the instance spec CLI options · 1f9066c0
      Iustin Pop authored
      This patch reworks the internal handling of the instance spec CLI
      option, and adds a tiered spec option that will be used in hspace to
      enable the (auxiliary) tiered-spec allocation mode.
      
      It also introduces a new data type for holding the instance
      specification.
      1f9066c0
    • Iustin Pop's avatar
      Convert option parsing to a monadic flow · 2f567ac0
      Iustin Pop authored
      This allows us to do verification of option arguments in the assignment
      functions themselves.
      2f567ac0
  14. Oct 21, 2009
  15. Oct 18, 2009
Loading