Apache Mesos
constants.hpp
Go to the documentation of this file.
1 // Licensed to the Apache Software Foundation (ASF) under one
2 // or more contributor license agreements. See the NOTICE file
3 // distributed with this work for additional information
4 // regarding copyright ownership. The ASF licenses this file
5 // to you under the Apache License, Version 2.0 (the
6 // "License"); you may not use this file except in compliance
7 // with the License. You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 
17 #ifndef __SCHED_CONSTANTS_HPP__
18 #define __SCHED_CONSTANTS_HPP__
19 
20 #include <stout/duration.hpp>
21 
22 namespace mesos {
23 namespace internal {
24 namespace scheduler {
25 
26 // Default backoff interval used by the scheduler driver to wait
27 // before registration.
28 //
29 // NOTE: The default backoff factor for the scheduler (2s) is
30 // different from the slave (1s) because the scheduler driver doesn't
31 // do an initial backoff for the very first attempt unlike the slave.
32 //
33 // TODO(vinod): Once we fix the scheduler driver to do initial backoff
34 // we can change the default to 1s.
36 
37 // The maximum interval the scheduler driver waits before retrying
38 // registration.
40 
41 // The maximum interval the scheduler driver waits before retrying
42 // authentication.
44 
45 // Default backoff interval used by the scheduler to wait after failed
46 // authentication.
48 
49 // Name of the default, CRAM-MD5 authenticatee.
50 constexpr char DEFAULT_AUTHENTICATEE[] = "crammd5";
51 
52 // Default value for `--authentication_timeout`.
54 
55 } // namespace scheduler {
56 } // namespace internal {
57 } // namespace mesos {
58 
59 #endif // __SCHED_CONSTANTS_HPP__
constexpr Duration DEFAULT_AUTHENTICATION_TIMEOUT
Definition: constants.hpp:53
constexpr char DEFAULT_AUTHENTICATEE[]
Definition: constants.hpp:50
Definition: duration.hpp:32
constexpr Duration AUTHENTICATION_RETRY_INTERVAL_MAX
Definition: constants.hpp:43
Definition: duration.hpp:221
Definition: duration.hpp:207
Definition: spec.hpp:30
constexpr Duration DEFAULT_REGISTRATION_BACKOFF_FACTOR
Definition: constants.hpp:35
constexpr Duration REGISTRATION_RETRY_INTERVAL_MAX
Definition: constants.hpp:39
Definition: attributes.hpp:24
constexpr Duration DEFAULT_AUTHENTICATION_BACKOFF_FACTOR
Definition: constants.hpp:47