eremetic-framework / eremetic

A Framework for Mesos to run one-off tasks in docker
Other
149 stars 35 forks source link

Framework/mesos auto-reconnect #225

Closed CharlesHenninger closed 2 years ago

CharlesHenninger commented 2 years ago

Adding default frameworkID to scheduler config, adding automatic reconnect for framework/mesos disconnect.

Tested in Rockerbox prod environment, behaves as expected (logs below):

ERROR: logging before flag.Parse: I0201 21:08:12.343410 1 scheduler.go:419] New master master@<> detected time="2022-02-01T21:08:12Z" level=debug msg="Framework disconnected with master, attempting to connect a new driver" time="2022-02-01T21:08:12Z" level=debug msg="No credentials specified in configuration" ERROR: logging before flag.Parse: I0201 21:08:12.344904 1 scheduler.go:334] Initializing mesos scheduler driver ERROR: logging before flag.Parse: I0201 21:08:12.677563 1 scheduler.go:583] Framework registered with ID=1234

keis commented 2 years ago

Thanks! I'll go ahead and merge this :)