marathon icon indicating copy to clipboard operation
marathon copied to clipboard

Proposal: Pre/Post Deployment Hook and Dynamic Attributes / Constraints

Open coderlol opened this issue 11 years ago • 13 comments

With mesos and docker, I need to deploy either A or B. If A is running on the node, don't deploy B. If B is deployed on the node, don't deploy A.

I figure a way to accomplish this is to update the mesos slave attributes. I think it would be useful to have pre and post deployment hooks that can be executed in the host context. I could use the hooks to dynamically update mesos attributes.

Comments?

coderlol avatar Aug 04 '15 00:08 coderlol

@coderlol If I understand correctly you want to schedule a task, depending on what is running on that node already? What is the reasoning for Pre/Post hooks? What are dynamic attributes / constraints? Can you elaborate a bit more, what you try to solve?

aquamatthias avatar Aug 12 '15 13:08 aquamatthias

Hi. Nearly equal to described in task functional requirements I'd like to have too. It would be good to have some kind of post-task-start hook (which executes command, starts other marathon task or so). It can be useful, for example, for registering newly created task in Services Discovery service, or filling newly spawned docker container with data, or cascading marathon tasks execution, etc

Niyakiy avatar Dec 25 '15 12:12 Niyakiy

+1. I could use this to submit (through a bash script/command) an event to Datadog every time an application is deployed.

ensonik avatar Feb 01 '16 19:02 ensonik

+1. This would be super helpful.

dgromov avatar Feb 01 '16 19:02 dgromov

+1 I would like to use it to register services in Kong after deployment

magnusja avatar Mar 17 '16 13:03 magnusja

+1

xiaods avatar Mar 25 '16 07:03 xiaods

+1

junneyang avatar Apr 14 '16 01:04 junneyang

+1

scheerer avatar Jul 07 '16 12:07 scheerer

+1

brat002 avatar Sep 15 '16 08:09 brat002

Anyone found any decent workarounds this in the meantime? I'd like to make a curl to kick off some integration tests once an app deploy is finished, but don't really see any simple way to do that.

ericf89 avatar Feb 01 '17 16:02 ericf89

close it as favor.

xiaods avatar Feb 13 '17 02:02 xiaods

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-3560. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.

meichstedt avatar Mar 06 '17 20:03 meichstedt

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-3560. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.

meichstedt avatar Mar 07 '17 12:03 meichstedt