marathon icon indicating copy to clipboard operation
marathon copied to clipboard

Show refused offers as part of deployment status

Open cmaloney opened this issue 11 years ago • 24 comments

Frequently deploys, and just spinning up new instances doesn't get any acceptable offers (or sometimes any offers at all). Marathon should give some UI for this.

A "Time since last offer" + list of recently refused offers with reason for being refused would be really helpful for debugging why things aren't starting in marathon.

cmaloney avatar Jan 23 '15 23:01 cmaloney

Possible duplicate or extension of these issues:

  • #126
  • #652
  • #951
  • #968
  • #1077

ConnorDoyle avatar Jan 23 '15 23:01 ConnorDoyle

:+1:

sttts avatar Jan 27 '15 16:01 sttts

+1

smarthall avatar Jan 28 '15 06:01 smarthall

Related to #951 and #1307, which are different cases of deployments going wrong.

air avatar Mar 19 '15 21:03 air

:+1:

kolloch avatar Mar 20 '15 14:03 kolloch

copied from #1728 (sorry for the duplicate, I did search honest ;)

I've noticed that trying to work out why an application is stuck in the queue is pretty much impossible to do without accessing the marathon log files. Though the information is at least present there.

eg:

Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: Conflicting constraints are: [field: "hostname"
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: operator: UNIQUE
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: ] (mesosphere.mesos.ResourceMatcher$:39)
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: [2015-06-30 13:44:18,497] INFO All
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: [2015-06-30 13:44:18,498] WARN App ports are not available in the offer. (mesosphere.mesos.ResourceMatcher$:50)
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: [2015-06-30 13:44:18,498] INFO No matching offer for /platform/services/discovery (need cpus=0.25, mem=64.0, disk=0.0, ports=List(8880)) : id {
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]:   value: "20150626-230939-3209314314-5050-1116-O259398"
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: }
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: framework_id {
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]:   value: "20150626-152352-3209314314-5050-1173-0000"
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: }
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: slave_id {
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]:   value: "20150626-152353-3226091530-5050-1189-S1"
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: }
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: hostname: "10.64.74.191"
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]: resources {
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]:   name: "cpus"
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]:   type: SCALAR
Jun 30 13:44:18 master-eeb65358-49f6-45e2-80ab-2018dc057a50 marathon[933]:   scalar {

Trying to parse syslog logs is no fun, can we expose these important logs as events or adding something to the object in the deployment queue? Pretty much any logging occurring in src/main/scala/mesosphere/mesos

stuart-warren avatar Jul 01 '15 13:07 stuart-warren

Should I use this one or #1307 ? I think this is a major issue for deploying containers and I'd love to know what's the status of this issue to understand how to contribute. Also, could this https://issues.apache.org/jira/browse/MESOS-2020 be helpful?

Raffo avatar Aug 14 '15 09:08 Raffo

:+1: we're currently opting into Mesos/Marathon for deploying all of our services and I ran into this issue numerous times. Checking logs for me is tolerable but not for the actual future daily-users. Do we have any intend to create an ETA for this story? -- Thanks for the great product so far ;-)

christianparpart avatar Jan 19 '16 14:01 christianparpart

+1 once again. We generally have to give the user a better way to understand why a deployment is stuck. Can we recap the status of this issue so that we can understand how to proceed?

Raffo avatar Jan 19 '16 15:01 Raffo

Relates to:

  • #2869
  • #2520

abraithwaite avatar Jan 19 '16 22:01 abraithwaite

+1

jpza avatar Apr 25 '16 21:04 jpza

Would be nice if this also distinguished between a lack of resources and a constraint

jpza avatar Apr 25 '16 21:04 jpza

Good news everyone! We have a UI design for this (including offers and constraints) and we're in the process of getting the work scheduled. No hard delivery date but it's in the pipe.

air avatar Apr 27 '16 16:04 air

Cool! Do you mind sharing something?

Raffo avatar Apr 27 '16 21:04 Raffo

@air cloud your share a screenshot?

kamilchm avatar May 12 '16 09:05 kamilchm

Sure @Raffo @kamilchm @worstadmin - here's the current mockup https://mesosphere.invisionapp.com/share/PS5KLCF7Q#/screens/127360376_App_Detail_View_-Debug-_Waiting-

air avatar May 12 '16 18:05 air

Looks great! Do you plan to make it for next release? We have users that will be happy to see this and we can help to code this.

kamilchm avatar May 13 '16 05:05 kamilchm

@air Perhaps backend for this in such a way https://github.com/tmmi/marathon/tree/show_refused_offers_endpoint and UI https://github.com/mesosphere/marathon-ui/pull/767 rejected

tmmi avatar May 18 '16 07:05 tmmi

@air your screen lacks one information. Some offers can be refused because app combine many requirements for resources and constraints, eg. I want to run app with 4 CPUs in two racks (["rack_id", "GROUP_BY", "2"]) and there's no CPUs left in one rack but there are plenty of it the second one. So as I understand your proposition it will show that there's no matches for rack constraint but CPUs are good? It wont tell me that as a developer I can decrease my CPU need for maybe 2 CPUs and then it will spawn successfully in both racks. @tmmi proposition with combined resources column can suggest that. Do I read that correctly?

kamilchm avatar May 19 '16 16:05 kamilchm

@air any thoughts?

kamilchm avatar Jun 22 '16 08:06 kamilchm