Revision 6e18cc0d
b/lib/constants.py | ||
---|---|---|
378 | 378 |
INSTANCE_REMOTE_IMPORT = _constants.INSTANCE_REMOTE_IMPORT |
379 | 379 |
INSTANCE_CREATE_MODES = _constants.INSTANCE_CREATE_MODES |
380 | 380 |
|
381 |
# Remote import/export handshake message and version |
|
382 |
RIE_VERSION = 0 |
|
383 |
RIE_HANDSHAKE = "Hi, I'm Ganeti" |
|
384 |
|
|
385 |
# Remote import/export certificate validity in seconds |
|
386 |
RIE_CERT_VALIDITY = 24 * 60 * 60 |
|
387 |
|
|
388 |
# Overall timeout for establishing connection |
|
389 |
RIE_CONNECT_TIMEOUT = 180 |
|
390 |
|
|
391 |
# Export only: how long to wait per connection attempt (seconds) |
|
392 |
RIE_CONNECT_ATTEMPT_TIMEOUT = 20 |
|
393 |
|
|
394 |
# Export only: number of attempts to connect |
|
395 |
RIE_CONNECT_RETRIES = 10 |
|
396 |
|
|
397 |
#: Give child process up to 5 seconds to exit after sending a signal |
|
398 |
CHILD_LINGER_TIMEOUT = 5.0 |
|
399 |
|
|
381 |
RIE_VERSION = _constants.RIE_VERSION |
|
382 |
RIE_HANDSHAKE = _constants.RIE_HANDSHAKE |
|
383 |
RIE_CERT_VALIDITY = _constants.RIE_CERT_VALIDITY |
|
384 |
RIE_CONNECT_TIMEOUT = _constants.RIE_CONNECT_TIMEOUT |
|
385 |
RIE_CONNECT_ATTEMPT_TIMEOUT = _constants.RIE_CONNECT_ATTEMPT_TIMEOUT |
|
386 |
RIE_CONNECT_RETRIES = _constants.RIE_CONNECT_RETRIES |
|
387 |
CHILD_LINGER_TIMEOUT = _constants.CHILD_LINGER_TIMEOUT |
|
400 | 388 |
|
401 | 389 |
# import/export config options |
402 | 390 |
INISECT_EXP = "export" |
b/src/Ganeti/HsConstants.hs | ||
---|---|---|
962 | 962 |
instanceCreateModes = |
963 | 963 |
ConstantUtils.mkSet $ map Types.instCreateModeToRaw [minBound..] |
964 | 964 |
|
965 |
-- * Remote import/export handshake message and version |
|
966 |
|
|
967 |
rieHandshake :: String |
|
968 |
rieHandshake = "Hi, I'm Ganeti" |
|
969 |
|
|
970 |
rieVersion :: Int |
|
971 |
rieVersion = 0 |
|
972 |
|
|
973 |
-- | Remote import/export certificate validity in seconds |
|
974 |
rieCertValidity :: Int |
|
975 |
rieCertValidity = 24 * 60 * 60 |
|
976 |
|
|
977 |
-- | Export only: how long to wait per connection attempt (seconds) |
|
978 |
rieConnectAttemptTimeout :: Int |
|
979 |
rieConnectAttemptTimeout = 20 |
|
980 |
|
|
981 |
-- | Export only: number of attempts to connect |
|
982 |
rieConnectRetries :: Int |
|
983 |
rieConnectRetries = 10 |
|
984 |
|
|
985 |
-- | Overall timeout for establishing connection |
|
986 |
rieConnectTimeout :: Int |
|
987 |
rieConnectTimeout = 180 |
|
988 |
|
|
989 |
-- | Give child process up to 5 seconds to exit after sending a signal |
|
990 |
childLingerTimeout :: Double |
|
991 |
childLingerTimeout = 5.0 |
|
992 |
|
|
965 | 993 |
-- * Dynamic device modification |
966 | 994 |
|
967 | 995 |
ddmAdd :: String |
Also available in: Unified diff