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 // Name of the default, CRAM-MD5 authenticatee.
42 constexpr char DEFAULT_AUTHENTICATEE[] = "crammd5";
43 
44 // Default value for `--authentication_backoff_factor`. The backoff timeout
45 // factor used by the scheduler when authenticating with the master.
47 
48 // Default value for `--authentication_timeout_min`. The minimum amount of
49 // time the scheduler waits before retrying authenticating with the master.
51 
52 // Default value for `--authentication_timeout_max`. The maximum amount of
53 // time the scheduler waits before retrying authenticating with the master.
55 
56 } // namespace scheduler {
57 } // namespace internal {
58 } // namespace mesos {
59 
60 #endif // __SCHED_CONSTANTS_HPP__
constexpr char DEFAULT_AUTHENTICATEE[]
Definition: constants.hpp:42
constexpr Duration DEFAULT_AUTHENTICATION_TIMEOUT_MAX
Definition: constants.hpp:54
Definition: duration.hpp:32
constexpr Duration DEFAULT_AUTHENTICATION_TIMEOUT_MIN
Definition: constants.hpp:50
Definition: duration.hpp:221
Definition: duration.hpp:207
Definition: agent.hpp:25
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:46