Note, I am not using Zookeeper in my test environment. I am just connecting
to a single master node. Obviously with zookeeper there would be master
failover if the primary went down, but there could be situations when the
entire master/zookeeper cluster are down, so the scenario still applies I
think. But I would think either way I should get a callback disconnect if
the single master or master/zookeeper cluster are shutdown either manually
or crash?

Thanks,
Sam Taha

http://www.grandlogic.com


On Fri, Oct 18, 2013 at 4:42 PM, Sam Taha <[email protected]> wrote:

> When my Framework has connected to the master, I do not seem to get the
> Scheduler.disconnected() callback when I kill the Master. Is this expected
> behavior or should my Framework get a disconnected() callback if I kill the
> master?
>
> Thanks,
> Sam Taha
>
> http://www.grandlogic.com
>
>
> On Wed, Oct 9, 2013 at 1:38 PM, Vinod Kone <[email protected]> wrote:
>
>> You should get a disconnected() callback when the master is disconnected.
>>
>>
>> On Wed, Oct 9, 2013 at 10:28 AM, Sam Taha <[email protected]> wrote:
>>
>>> From java Framework, is their a way to to just ping the master to see if
>>> my Scheduler/Driver is properly connected to mesos? None of the methods in
>>> the SchedulerDriver look appropriate for just a simple round trip check if
>>> the Framework is connected.
>>>
>>> I need to do this in cases where I have declined ALL offers for a period
>>> of time, so I am not getting anything back from mesos during this time, but
>>> I still need to give the user feedback if the Framework is actually
>>> connected or not.
>>>
>>> Relying on Scheduler.registered() does not give current connection
>>> status, since I may have connected hours ago and I may have declined
>>> offers, but I still need to check if my Framework is connected.
>>>
>>> Thanks,
>>> Sam Taha
>>>
>>> http://www.grandlogic.com
>>>
>>>
>>>
>>
>

Reply via email to