TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Docker at Spotify

65 pointsby pini42over 11 years ago

6 comments

quaunautover 11 years ago
I&#x27;ve been watching Docker ever since Flynn was announced, and started using it seriously this last December. Primarily, I&#x27;m trying to use it as a faster alternative to Chef&#x2F;Puppet, running it over a Vagrant precise64 box, to potentially be something I can shove onto a foreign machine without much worry.<p>Overall, this has actually worked fairly well- getting certain containers up and running, and having them work together, hasn&#x27;t been very difficult. But, there&#x27;s one place that&#x27;s consistently been a thorn in my side: PostgreSQL.<p>Currently, there is this article in Docker.io&#x27;s docs[1] that claims to help you set up a Postgres container, but so far I&#x27;ve not seen it work for me or anyone else I&#x27;ve spoken to about it. It&#x27;s primarily come from how Postgres is traditionally installed&#x2F;ran:<p>1. Service is started. This can either be an &#x27;active&#x27; Postgres server, or in the background. This creates a Postmaster.pid file, which ensures no other Postgres servers are running on the machine(I&#x27;m not entirely sure why, beyond ease-of-use scenarios).<p>2. Service is stopped. This deletes the Postmaster.pid file.<p>In the case of Docker containers, this presents a bit of a problem. If you try to start the Postgres container that way, it will run, but the Postmaster.pid seems to sit outside of it. In the process, once you shut that container down, you actually can&#x27;t start another without error- the Postmaster.pid stops you.<p>The other alternative, is having a container running with Postgres as a background process to something else. This can work, but you start having to use services that can keep a process running while letting you access &#x2F;bin&#x2F;bash to still get at Postgres.<p>Neither of these potential solutions allow you to retain data, either.<p>I&#x27;ve done a lot of poking around, but I haven&#x27;t had a lot of success in figuring out how to get past this. Those who are using Docker as a Puppet&#x2F;Chef replacement, especially with Vagrant- what are you usually doing for a database solution?<p>1. <a href="http://docs.docker.io/en/latest/examples/postgresql_service/" rel="nofollow">http:&#x2F;&#x2F;docs.docker.io&#x2F;en&#x2F;latest&#x2F;examples&#x2F;postgresql_service&#x2F;</a>
评论 #7029993 未加载
评论 #7029794 未加载
评论 #7029797 未加载
tincoover 11 years ago
I like how no one is paying heed to the &quot;Don&#x27;t use Docker in production&quot; warning on the Docker site. Every once in a while they release a version that&#x27;s buggy (like 0.7.3) and we fix to the previous version and wait for the next version.
ermintrudeover 11 years ago
They let devs ssh onto production boxes and do what they want?!?! &quot;Things diverge pretty quickly&quot; - I&#x27;m sure they do. That sounds like a recipe for disaster...<p>Docker looks promising but until there&#x27;s a way to allocate maximum resources to a container I wouldn&#x27;t use it in production. VMs are much slower to start but at least a runaway process on one won&#x27;t affect other VMs on the same hardware.<p>Docker only lets you hint that only a certain number of cores should be used, so a bad process might monopolise the physical machine. Also until other tools (ansible, salt, chef, etc) help with provisioning you need to edit the dockerfile to change parameters (eg for settings that depend on your environment like smtp end points test vs prod, etc).<p>If these points are addressed I think it&#x27;ll be awesome though.
评论 #7030770 未加载
评论 #7033655 未加载
评论 #7030948 未加载
评论 #7031144 未加载
afandianover 11 years ago
If there are any Spotify people reading, please please <i>please</i> fix the search&#x2F;filter regression. You broke it a year-ish ago. It&#x27;s nice to hear about innovations but a bit galling to paying customers when you break an essential feature and don&#x27;t fix it.<p>To reproduce: be on an artist page. Now try and find a track with a given name on that page. I dare you. Without reading every single track with your eyes. You used to be able to filter that list.<p><a href="http://community.spotify.com/t5/Spotify-Ideas/0-8-8-Bring-back-the-filter-option-on-album-artist-pages/idi-p/261856" rel="nofollow">http:&#x2F;&#x2F;community.spotify.com&#x2F;t5&#x2F;Spotify-Ideas&#x2F;0-8-8-Bring-ba...</a>
cascaover 11 years ago
&quot;* Please note Docker is currently under heavy developement. It should not be used in production (yet).&quot; [1]<p>[1] <a href="http://www.docker.io/learn_more/" rel="nofollow">http:&#x2F;&#x2F;www.docker.io&#x2F;learn_more&#x2F;</a>
评论 #7030271 未加载
ksecover 11 years ago
Why Docker? Why not Packer.io? Why No Love for OSv?