Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * Now talking on #docker
- * Topic for #docker is: Docker: Open platform for distributed applications | http://docker.com | http://github.com/docker/docker | Current Status: http://status.docker.com/ | Logged at https://botbot.me/freenode/docker | https://forums.docker.com/ | Registration with NickServ required to participate: https://freenode.net/kb/answer/registration
- * Topic for #docker set by programmerq!~jefferya@unaffiliated/programmerq (Thu Mar 9 21:37:05 2017)
- <KieronWiltshire> do I have to create a Dockerfile for each linux based operating system I want to use?
- <KieronWiltshire> like do I need a Dockerfile for CentOS and a Dockerfile for ubuntu
- * doodoo (~doodoo@unaffiliated/doodoo) has joined
- <selckin> not really using much of those usually with docker, so why do you want 2?
- * grayhemp (~grayhemp@73.93.153.253) has joined
- <KieronWiltshire> selckin my application gets installed on my clients servers, some run different to others
- * mmars has quit (Remote host closed the connection)
- <ada> KieronWiltshire: no
- <KieronWiltshire> so how do I install my dependencies etc automagically ada?
- <KieronWiltshire> because CentOS uses yum and Ubuntu uses apt-get
- <ada> KieronWiltshire: what do you mean? your dockerfile contains the instructions to satisfy your app's dependencies
- <ada> KieronWiltshire: whatever base os you use for your image, use that package manager
- <ada> KieronWiltshire: once the image is built, it can run anywhere on the same architecture
- <KieronWiltshire> ah I get you ada
- <KieronWiltshire> so once I install the dependencies on that image
- <KieronWiltshire> I can run it on any linux os?
- <ada> more or less
- <ada> anything with a modern kernel
- * doodoo has quit (Ping timeout: 264 seconds)
- * Zardoz (~Zardoz@cpe-70-115-152-159.austin.res.rr.com) has joined
- * jordia65 (~jmassague@135.24.19.95.dynamic.jazztel.es) has joined
- <KieronWiltshire> ada so let's say I have 3 instances of my image running
- <KieronWiltshire> each with php-apache
- <KieronWiltshire> that's 3 instances of apache running is it not?
- <ada> sure
- <KieronWiltshire> isn't that ineffective?
- * neilhwatson (~neilhwats@CPE44d9e7ffded8-CM68b6fcf73540.cpe.net.cable.rogers.com) has joined
- <ada> ineffective for what?
- <ada> it dpeends on what you're measuring
- <KieronWiltshire> well isn't my OS now technically running 3 apache servers
- * Spanktar has quit (Quit: zZz)
- <ada> yes but if you don't want 3 apache servers, don't run 3 apache containers
- <ada> there are valid use cases for running multiple web servers
- <ada> if you don't need to, dont do it
- <KieronWiltshire> okay what if I explain my problem and you see if you can provide me with a solution, because I thought docker was my answer but now I'm unsure, is that okay?
- <ada> docker isn't a drop-in magic bullet - what's your end goal?
- * diod has quit (Ping timeout: 240 seconds)
- * bnason (~bnason@76.165.120.2) has joined
- <KieronWiltshire> Basically, we have multiple customers running on one one server and using Apache's virtual hosts to point different domains to different customers
- <KieronWiltshire> so basically, imagine having our app, cloned 3 times and having 3 urls point to each dir on one apache server
- * a3Dman has quit (Ping timeout: 240 seconds)
- * mmazing has quit (Ping timeout: 252 seconds)
- <KieronWiltshire> we'd still like to run our clients on one server but not sure how we'd go about doing so if we're running 3 apache servers
- * bturker has quit (Quit: leaving)
- * grayhemp has quit (Ping timeout: 260 seconds)
- <ada> so I would definitely recommend running separate web servers - then an outage/problem on one can't take down the business of the others
- <ada> I would use a proxy like nginx or haproxy to rewrite request urls to the right container backend
- * fekepp has quit (Quit: fekepp)
- * diod (~diod@unaffiliated/diod) has joined
- <ada> you would publish a containre for CustomerA on some port, CustomerB on another port, CustomerC on a third port - and the load balancer/proxy in front of your servers looks at the http request and forwards it to the right container
- * Neoon (~Neoon@scout.ath.pw) has joined
- <KieronWiltshire> wouldn't running seperate web servers be so much more costly though? we're not that big of a business
- * rywillia_ (~rywillia@c-24-91-86-123.hsd1.ma.comcast.net) has joined
- <ada> define "costly"
- * epopt (~epopt@47.149.131.102) has joined
- <ada> apache is free - if your customers are driving so much traffic to your servers that it grinds to a halt, its time to charge them more
- * GAZDOWN has quit (Ping timeout: 255 seconds)
- <ada> and get more servers
- <KieronWiltshire> well I mean wouldn't it be more cost-effective to run on one webserver
- <KieronWiltshire> true
- <KieronWiltshire> okay I get you
- <ada> No, I would suggest at least 3 servers
- <ada> for a highly-available setup with failover
- <KieronWiltshire> I think I have an idea of where we're going :)
- * kpease_ (~kpease@72.22.182.166) has joined
- <ada> different web servers let you decouple therequirements of one site from the others - if apache needs configuration X for this customer, and configuration Y for this customer, you can easily do that by running multiple apache containers
- * __Yiota has quit (Read error: Connection reset by peer)
- * rywillia has quit (Ping timeout: 246 seconds)
- <ada> if they are all sharing the same box, same webserver, with diff vhosts, you have to configure your 1 webserver for all their requirements
- <KieronWiltshire> ada
- <KieronWiltshire> what would I do about the database?
- * mmazing (~mmazing@unaffiliated/mmazing) has joined
- <KieronWiltshire> our database was originally on the same server
- <ada> I would run a separate database server
- <ada> either in containers or bare metal
- <KieronWiltshire> wouldnt it be slow for our clients in america though if we hosted it in europe
- * blip- (~blip-@unaffiliated/blip-) has joined
- * gebbione (~bizmate@cpc1-finc16-2-0-cust11725.4-2.cable.virginm.net) has joined
- * macourtois (~mcourtois@68.67.62.190) has joined
- <ada> yeah but containers have nothing to do withthat
- * blip- has quit (Read error: Connection reset by peer)
- * vj3k_ is now known as vj3k
- <KieronWiltshire> how could I speed up our database for clients that are a fair distance away
- <KieronWiltshire> if I had one database server?
- <ada> run a server geographically close to your customers
- <ada> use a content delivery network to speed up static content
- <ada> like cloudflare
- <KieronWiltshire> 1 server?
- <ada> 1 server, what?
- * kkoukiou has quit (Quit: Leaving.)
- * eddd has quit (Remote host closed the connection)
- <KieronWiltshire> well I have clients in america and europe
- <KieronWiltshire> more in europe
- <KieronWiltshire> so my database would be awesome for europeans
- <KieronWiltshire> but terrible for americans right?
- <ada> "terrible" is a strong word
- <KieronWiltshire> you know what i mean :)
- * eddd (~eddd@80.68.228.182) has joined
- <ada> do you have real data on performance in america vs europe?
- * zivester (~zivester@38.104.66.138) has joined
- <KieronWiltshire> nope
- <ada> like actual data you can use right now
- <KieronWiltshire> just trying to build for the future
- <ada> then dont optimize for that variable ahead of time
- <KieronWiltshire> okay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement