Open pires opened 7 years ago
Fixes #110
Basically, the fix is to decline offers, as fast as possible, if running instances count equals desired instances count.
etcd-mesos-scheduler:
I0422 15:20:12.985033 7212 scheduler.go:241] Received offer but will reject since there are no tasks pending. I0422 15:20:12.985061 7212 scheduler.go:489] Declining offer d154c059-9deb-4fe9-87a6-b1d982470dd7-O10. I0422 15:20:12.985100 7212 messenger.go:201] Sending message mesos.internal.LaunchTasksMessage to master@172.17.8.11:5050 I0422 15:20:12.985245 7212 scheduler.go:689] running instances: 3 desired: 3 offers: 0
Mesos
I0422 15:20:28.531942 2685 master.cpp:6992] Sending 1 offers to framework d154c059-9deb-4fe9-87a6-b1d982470dd7-0001 () at scheduler(1)@172.17.8.11:31376 I0422 15:20:28.535197 2684 master.cpp:4731] Processing DECLINE call for offers: [ d154c059-9deb-4fe9-87a6-b1d982470dd7-O11 ] for framework d154c059-9deb-4fe9-87a6-b1d982470dd7-0001 () at scheduler(1)@172.17.8.11:31376 I0422 15:20:43.551703 2680 master.cpp:6992] Sending 1 offers to framework d154c059-9deb-4fe9-87a6-b1d982470dd7-0001 () at scheduler(1)@172.17.8.11:31376 I0422 15:20:43.554129 2688 master.cpp:4731] Processing DECLINE call for offers: [ d154c059-9deb-4fe9-87a6-b1d982470dd7-O12 ] for framework d154c059-9deb-4fe9-87a6-b1d982470dd7-0001 () at scheduler(1)@172.17.8.11:31376 I0422 15:20:58.568119 2687 master.cpp:6992] Sending 1 offers to framework d154c059-9deb-4fe9-87a6-b1d982470dd7-0001 () at scheduler(1)@172.17.8.11:31376 I0422 15:20:58.581554 2687 master.cpp:4731] Processing DECLINE call for offers: [ d154c059-9deb-4fe9-87a6-b1d982470dd7-O13 ] for framework d154c059-9deb-4fe9-87a6-b1d982470dd7-0001 () at scheduler(1)@172.17.8.11:31376
Fixes #110
Basically, the fix is to decline offers, as fast as possible, if running instances count equals desired instances count.
etcd-mesos-scheduler:
Mesos