Revision b964f067 src/Ganeti/HsConstants.hs

b/src/Ganeti/HsConstants.hs
2701 2701
nrAll :: FrozenSet String
2702 2702
nrAll = ConstantUtils.mkSet $ map Types.nodeRoleToRaw [minBound..]
2703 2703

  
2704
-- * SSL certificate check constants (in days)
2705

  
2706
sslCertExpirationError :: Int
2707
sslCertExpirationError = 7
2708

  
2709
sslCertExpirationWarn :: Int
2710
sslCertExpirationWarn = 30
2711

  
2704 2712
-- * Allocator framework constants
2705 2713

  
2706 2714
iallocatorVersion :: Int
......
2755 2763
nodeEvacModes :: FrozenSet String
2756 2764
nodeEvacModes = ConstantUtils.mkSet $ map Types.evacModeToRaw [minBound..]
2757 2765

  
2766
-- * Job queue
2767

  
2768
jobQueueVersion :: Int
2769
jobQueueVersion = 1
2770

  
2771
jobQueueSizeHardLimit :: Int
2772
jobQueueSizeHardLimit = 5000
2773

  
2774
jobQueueFilesPerms :: Int
2775
jobQueueFilesPerms = 0o640
2776

  
2777
-- * Unchanged job return
2778

  
2779
jobNotchanged :: String
2780
jobNotchanged = "nochange"
2781

  
2758 2782
-- * Job status
2759 2783

  
2760 2784
jobStatusQueued :: String
......
2843 2867
opPrioDefault :: Int
2844 2868
opPrioDefault = opPrioNormal
2845 2869

  
2870
-- * Lock recalculate mode
2871

  
2872
locksAppend :: String
2873
locksAppend = "append"
2874

  
2875
locksReplace :: String
2876
locksReplace = "replace"
2877

  
2878
-- * Lock timeout
2879
--
2880
-- The lock timeout (sum) before we transition into blocking acquire
2881
-- (this can still be reset by priority change).  Computed as max time
2882
-- (10 hours) before we should actually go into blocking acquire,
2883
-- given that we start from the default priority level.
2884

  
2885
lockAttemptsMaxwait :: Double
2886
lockAttemptsMaxwait = 15.0
2887

  
2888
lockAttemptsMinwait :: Double
2889
lockAttemptsMinwait = 1.0
2890

  
2891
lockAttemptsTimeout :: Int
2892
lockAttemptsTimeout = (10 * 3600) `div` (opPrioDefault - opPrioHighest)
2893

  
2846 2894
-- * Execution log types
2847 2895

  
2848 2896
elogMessage :: String

Also available in: Unified diff