HubSpot / Singularity

Scheduler (HTTP API and webapp) for running Mesos tasks—long running processes, one-off tasks, and scheduled jobs. #hubspot-open-source
http://getsingularity.com/
Apache License 2.0
821 stars 188 forks source link

General feedback from an outsider #277

Closed eliast closed 9 years ago

eliast commented 9 years ago

I'm giving a talk at AWS re:Invent on Singularity and have been working to setup a demo for the audience. The good news is that I'm almost there with a very compelling demo in my opinion but I did run into several issues while getting ready. I'd figured the feedback would be help you get the project to a better place for someone trying Singularity for the first time after a talk.

The goal was to run Singularity and launch two requests (docker containers): mysql and wordpress and show that it can survive a docker kill as well as showcasing an increase in the number of instances for the wordpress container. I did all of this using the Vagrant setup. Very nice @tpetr and thanks for all your help. I couldn't have done it without you.

But I ran into a few things along the way and I figured it'd be best for you guys to see even though I know you know most of them already.

Now I just need to setup Baragon so I can load-balance between my two wordpress docker containers and everything will be awesome.

Overall, I'm blown away at what can be done without me having to modify a single line of code. Most of this it's simply out of the box configuration, but it will deter people from seeing how easy it's to use Singularity and Mesos to get an amazing PaaS for free! Keep up the good work guys.

/cc @wsorenson @tpetr @hgschmie @stevenschlansker

gchomatas commented 9 years ago

Thanks for the great and extensive feedback @eliast !

When I was preparing for MesosCon14 I run into similar problems when trying to use Singularity stand alone without the other HubSpot tools running on top. At that time I wrote the first version of the docs (needs a continuous curation :)) and changed vagrant to run both Singularity and mesos in the same machine. Tom has done many more enhancements to vagrant since then but it is true that we need to do more to make singularity dead easy to test/use for common cases.

Please feel free to update the docs with fixes, clarifications and since you are doing the exercise it would be fantastic if you find some time to write a how-to for other users that would like to run the scenario you are trying to demo. There is a section in docs named "Singularity_Deploy_Examples.md" that I didn't find the time to fill in . It is meant to include how-tos for running some common use cases. You could be the first to add a use case in there!

stevenschlansker commented 9 years ago

Yes thanks, this is great feedback. I'm going to split this out into separate issues and ask some followup questions.

stevenschlansker commented 9 years ago

@eliast

Finally, I ran a container successfully, but then when I tried my second one, it failed. Not enough resources. I had to figure out how to add a resources file with cpus(*):8 so I can continue my experiment as well as how to restart mesos.

I generally launch my tasks with e.g. cpus=0.1 since no task needs a dedicated CPU.

stevenschlansker commented 9 years ago

OK, I've filed issues for all except the above one which I believe can easily be fixed when you create your request. It's doubtful that we can fix all of these before your demo, but if there's a couple in particular you'd like (for example, I believe it would be relatively simple to get proper Docker integration working for you, and it's a lot more compelling with it working!) please mention it and hopefully we can find some time to get fixes in. I would close this mega-issue now but I can't :)

eliast commented 9 years ago

We have time for my demo! As long as we don't go backwards, I should be able to recreate what I have so far. I can see how portMappings is already supported in Mesos, but do you know how to add linking support? The basic test would be to get a mysql and 2 wordpress containers running. What do you say?

Thanks for all of the issue filing too!