MCPcopy Create free account
hub / github.com/apache/mesos / timeout

Method timeout

src/master/master.cpp:229–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 }
228
229 void timeout()
230 {
231 if (pinged) {
232 timeouts++; // No pong has been received before the timeout.
233 if (timeouts >= maxSlavePingTimeouts) {
234 // No pong has been received for the last
235 // 'maxSlavePingTimeouts' pings.
236 markUnreachable();
237 }
238 }
239
240 // NOTE: We keep pinging even if we schedule a transition to
241 // UNREACHABLE. This is because if the slave eventually responds
242 // to a ping, we can cancel the UNREACHABLE transition.
243 ping();
244 }
245
246 // Marking slaves unreachable is rate-limited and can be canceled if
247 // a pong is received before `_markUnreachable` is called.

Callers 6

killMethod · 0.45
_recoveryTimeoutMethod · 0.45
heartbeatMethod · 0.45
getMetricsMethod · 0.45
timedoutMethod · 0.45
services.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected