Skip to content
Snippets Groups Projects
  1. Nov 20, 2012
    • Iustin Pop's avatar
      Cleanup ht's use of positive/strictpositive · 2c9fa1ff
      Iustin Pop authored
      Currently, ht.py uses a bad terminology for positive/non-negative
      numbers. Per http://en.wikipedia.org/wiki/Positive_number
      
      , this is the
      correct terminology:
      
      - A number is positive if it is greater than zero.
      - A number is negative if it is less than zero.
      - A number is non-negative if it is greater than or equal to zero.
      - A number is non-positive if it is less than or equal to zero.
      
      So this patch renames things as follows:
      
      - TPositiveInt            ⇒ TNonNegativeInt
      - TStrictPositiveInt      ⇒ TPositiveInt
      - TMaybePositiveInt       ⇒ dropped, not used anywhere
      - TMaybeStrictPositiveInt ⇒ TMaybePositiveInt
      - TPositiveFloat          ⇒ TNonNegativeFloat
      - TStrictNegativeInt      ⇒ TNegativeInt
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      2c9fa1ff
  2. Nov 13, 2012
  3. Nov 08, 2012
  4. Nov 01, 2012
  5. Oct 25, 2012
  6. Oct 11, 2012
  7. Oct 05, 2012
  8. Sep 25, 2012
  9. Sep 18, 2012
  10. Aug 07, 2012
    • Iustin Pop's avatar
      Switch job IDs to numeric · 76b62028
      Iustin Pop authored
      
      This has been a long-standing cleanup item, which we've always
      refrained from doing due to the high estimated effort needed.
      
      In reality, it turned out that after some infrastructure improvements
      (the previous patches), the actual job queue-related changes are quite
      small.
      
      We will need to update the NEWS file later, but so far the RAPI
      documentation doesn't mention that the job ID is a string (it only
      says it is "a number"), so it doesn't look like it needs update.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      76b62028
  11. Jun 15, 2012
  12. Mar 30, 2012
  13. Dec 22, 2011
  14. Dec 21, 2011
  15. Nov 21, 2011
  16. Nov 17, 2011
  17. Oct 27, 2011
  18. Oct 26, 2011
    • Michael Hanselmann's avatar
      Convert job queue's RPC to generated code · fb1ffbca
      Michael Hanselmann authored
      
      With these changes job queue RPC will finally show up on the lock
      monitor. See below for an example. A job queue-specific class is used to
      restrict the use of a static list for name resolution to the job queue.
      Further improvements can be made to not re-create the whole RPC client
      for every call (e.g. by using a more dynamic resolver), but for now this
      works.
      
      rpc/node8.example.com/jobqueue_update Jq8/Job9/TEST_DELAY
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      fb1ffbca
  19. Sep 06, 2011
  20. Aug 30, 2011
  21. Aug 19, 2011
  22. Aug 02, 2011
    • Michael Hanselmann's avatar
      jqueue: Add short delay before detecting job changes · dfc8824a
      Michael Hanselmann authored
      
      By sleeping for 100ms after receiving a notification for a changed job
      file the job is given some additional time to change again. This
      significantly reduces the number of LUXI calls for WaitForJobChanges
      (depending on the job, in my tests with “gnt-cluster verify
      --debug-simulate-errors” by about 80%), and improves performance (the
      same job went from around 7 seconds to around 3.5 seconds).
      
      This method is not perfect. The algorithm could be made more complex,
      e.g. by increasing the delay on each change, etc., but for now this
      simple change provides a good improvement.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      dfc8824a
  23. Jul 21, 2011
  24. Jul 20, 2011
Loading