Skip to content
Snippets Groups Projects
  1. Aug 30, 2010
  2. Aug 25, 2010
  3. Aug 24, 2010
  4. May 25, 2010
  5. Jan 07, 2010
  6. Nov 27, 2009
  7. Nov 11, 2009
  8. Oct 16, 2009
  9. Aug 31, 2009
  10. Aug 18, 2009
  11. Jul 06, 2009
    • Iustin Pop's avatar
      Fix hlint-generated warnings · 9f6dcdea
      Iustin Pop authored
      This big patch cleans up the code per hlint indications. Many removals
      of extra parentheses, replacements of concat . map with concabtMap,
      extra dollar signs, eta reductions, etc. were performed.
      
      The code still compiles and passes a couple of manual tests on sample
      files. The individual changes are also small enough as to be visually
      easy to confirm.
      9f6dcdea
  12. Jun 11, 2009
    • 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).
      78694255
  13. Jun 10, 2009
    • Iustin Pop's avatar
      Add cpu-count-related attributes to nodes · 1a82215d
      Iustin Pop authored
      This patch adds cpu-count related attributes to nodes:
        - total cpus
        - cpus in use
        - ratio of virtual:physical cpus
      
      We also set correctly the cpu values at load time, but we don't do
      anything yet while moving instances around. The cpu ratio is shown in
      the cluster list.
      1a82215d
    • Iustin Pop's avatar
      Add a new vcpus attribute to instances · d752eb39
      Iustin Pop authored
      This patch adds reading of vcpu count for instances, in preparation for
      using the vcpu ratio in cluster scoring.
      d752eb39
  14. Jun 01, 2009
  15. May 27, 2009
    • Iustin Pop's avatar
      Add type synonyms for the node/instance indices · 608efcce
      Iustin Pop authored
      This is a first step towards full datatype renaming. That requires more
      changes, so at first we only want to document clearly what is a node
      index, what is an instance index, and what is a plain Int.
      608efcce
  16. May 25, 2009
  17. May 23, 2009
    • Iustin Pop's avatar
      Remove ktn/kti from first half of loader · e3a684c5
      Iustin Pop authored
      This patch removes the ktn/kti lists from most parts of the first half
      of the loading sequence. Some remain as the [(String, Int)] is the
      nicest way to lookup names and get indices back.
      e3a684c5
    • Iustin Pop's avatar
      Add a small class for Nodes and Instances · 497e30a1
      Iustin Pop authored
      Since both nodes and instances support some common functionality (names
      and indices), we add a class so that we can access these attributes in a
      generic way.
      497e30a1
  18. May 22, 2009
    • Iustin Pop's avatar
      Add back names to nodes/instances · 2727257a
      Iustin Pop authored
      In order to simplify the data structures, we add back the name on the
      node and instance objects. We still keep the index for, well, indexing,
      but we will use the name directly from the object, in order to get rid
      of the ktn/kti arguments which are passed around everywhere.
      2727257a
    • Iustin Pop's avatar
      More code reorganizations · e4c5beaf
      Iustin Pop authored
      This new big patch does a couple of more cleanups in the loading of data
      chapter:
        - introduce a Types module that holds most types (except the base
          Node/Instance/etc.) so that multiple other modules can use these
          (instead of only Cluster and its users)
        - bring IAlloc.hs in line with the recent changes of providing data
          types and not strings
        - removal of obsolete Utils.hs json-related functions
      e4c5beaf
    • Iustin Pop's avatar
      Rework the loader model · 040afc35
      Iustin Pop authored
      This big patch changes the loader model from “string data as common
      format” to actual object structures as common format.
      
      The text loading function move from Cluster.hs to a new Text.hs module,
      some common functions are moved to a new Loader.hs module, and the
      return values from both Rapi.hs and Text.hs are uniformized.
      040afc35
Loading