Advertisement
Guest User

Untitled

a guest
Sep 27th, 2017
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.09 KB | None | 0 0
  1. * Now talking on #docker
  2. * 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
  3. * Topic for #docker set by programmerq!~jefferya@unaffiliated/programmerq (Thu Mar 9 21:37:05 2017)
  4. <KieronWiltshire> do I have to create a Dockerfile for each linux based operating system I want to use?
  5. <KieronWiltshire> like do I need a Dockerfile for CentOS and a Dockerfile for ubuntu
  6. * doodoo (~doodoo@unaffiliated/doodoo) has joined
  7. <selckin> not really using much of those usually with docker, so why do you want 2?
  8. * grayhemp (~grayhemp@73.93.153.253) has joined
  9. <KieronWiltshire> selckin my application gets installed on my clients servers, some run different to others
  10. * mmars has quit (Remote host closed the connection)
  11. <ada> KieronWiltshire: no
  12. <KieronWiltshire> so how do I install my dependencies etc automagically ada?
  13. <KieronWiltshire> because CentOS uses yum and Ubuntu uses apt-get
  14. <ada> KieronWiltshire: what do you mean? your dockerfile contains the instructions to satisfy your app's dependencies
  15. <ada> KieronWiltshire: whatever base os you use for your image, use that package manager
  16. <ada> KieronWiltshire: once the image is built, it can run anywhere on the same architecture
  17. <KieronWiltshire> ah I get you ada
  18. <KieronWiltshire> so once I install the dependencies on that image
  19. <KieronWiltshire> I can run it on any linux os?
  20. <ada> more or less
  21. <ada> anything with a modern kernel
  22. * doodoo has quit (Ping timeout: 264 seconds)
  23. * Zardoz (~Zardoz@cpe-70-115-152-159.austin.res.rr.com) has joined
  24. * jordia65 (~jmassague@135.24.19.95.dynamic.jazztel.es) has joined
  25. <KieronWiltshire> ada so let's say I have 3 instances of my image running
  26. <KieronWiltshire> each with php-apache
  27. <KieronWiltshire> that's 3 instances of apache running is it not?
  28. <ada> sure
  29. <KieronWiltshire> isn't that ineffective?
  30. * neilhwatson (~neilhwats@CPE44d9e7ffded8-CM68b6fcf73540.cpe.net.cable.rogers.com) has joined
  31. <ada> ineffective for what?
  32. <ada> it dpeends on what you're measuring
  33. <KieronWiltshire> well isn't my OS now technically running 3 apache servers
  34. * Spanktar has quit (Quit: zZz)
  35. <ada> yes but if you don't want 3 apache servers, don't run 3 apache containers
  36. <ada> there are valid use cases for running multiple web servers
  37. <ada> if you don't need to, dont do it
  38. <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?
  39. <ada> docker isn't a drop-in magic bullet - what's your end goal?
  40. * diod has quit (Ping timeout: 240 seconds)
  41. * bnason (~bnason@76.165.120.2) has joined
  42. <KieronWiltshire> Basically, we have multiple customers running on one one server and using Apache's virtual hosts to point different domains to different customers
  43. <KieronWiltshire> so basically, imagine having our app, cloned 3 times and having 3 urls point to each dir on one apache server
  44. * a3Dman has quit (Ping timeout: 240 seconds)
  45. * mmazing has quit (Ping timeout: 252 seconds)
  46. <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
  47. * bturker has quit (Quit: leaving)
  48. * grayhemp has quit (Ping timeout: 260 seconds)
  49. <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
  50. <ada> I would use a proxy like nginx or haproxy to rewrite request urls to the right container backend
  51. * fekepp has quit (Quit: fekepp)
  52. * diod (~diod@unaffiliated/diod) has joined
  53. <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
  54. * Neoon (~Neoon@scout.ath.pw) has joined
  55. <KieronWiltshire> wouldn't running seperate web servers be so much more costly though? we're not that big of a business
  56. * rywillia_ (~rywillia@c-24-91-86-123.hsd1.ma.comcast.net) has joined
  57. <ada> define "costly"
  58. * epopt (~epopt@47.149.131.102) has joined
  59. <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
  60. * GAZDOWN has quit (Ping timeout: 255 seconds)
  61. <ada> and get more servers
  62. <KieronWiltshire> well I mean wouldn't it be more cost-effective to run on one webserver
  63. <KieronWiltshire> true
  64. <KieronWiltshire> okay I get you
  65. <ada> No, I would suggest at least 3 servers
  66. <ada> for a highly-available setup with failover
  67. <KieronWiltshire> I think I have an idea of where we're going :)
  68. * kpease_ (~kpease@72.22.182.166) has joined
  69. <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
  70. * __Yiota has quit (Read error: Connection reset by peer)
  71. * rywillia has quit (Ping timeout: 246 seconds)
  72. <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
  73. <KieronWiltshire> ada
  74. <KieronWiltshire> what would I do about the database?
  75. * mmazing (~mmazing@unaffiliated/mmazing) has joined
  76. <KieronWiltshire> our database was originally on the same server
  77. <ada> I would run a separate database server
  78. <ada> either in containers or bare metal
  79. <KieronWiltshire> wouldnt it be slow for our clients in america though if we hosted it in europe
  80. * blip- (~blip-@unaffiliated/blip-) has joined
  81. * gebbione (~bizmate@cpc1-finc16-2-0-cust11725.4-2.cable.virginm.net) has joined
  82. * macourtois (~mcourtois@68.67.62.190) has joined
  83. <ada> yeah but containers have nothing to do withthat
  84. * blip- has quit (Read error: Connection reset by peer)
  85. * vj3k_ is now known as vj3k
  86. <KieronWiltshire> how could I speed up our database for clients that are a fair distance away
  87. <KieronWiltshire> if I had one database server?
  88. <ada> run a server geographically close to your customers
  89. <ada> use a content delivery network to speed up static content
  90. <ada> like cloudflare
  91. <KieronWiltshire> 1 server?
  92. <ada> 1 server, what?
  93. * kkoukiou has quit (Quit: Leaving.)
  94. * eddd has quit (Remote host closed the connection)
  95. <KieronWiltshire> well I have clients in america and europe
  96. <KieronWiltshire> more in europe
  97. <KieronWiltshire> so my database would be awesome for europeans
  98. <KieronWiltshire> but terrible for americans right?
  99. <ada> "terrible" is a strong word
  100. <KieronWiltshire> you know what i mean :)
  101. * eddd (~eddd@80.68.228.182) has joined
  102. <ada> do you have real data on performance in america vs europe?
  103. * zivester (~zivester@38.104.66.138) has joined
  104. <KieronWiltshire> nope
  105. <ada> like actual data you can use right now
  106. <KieronWiltshire> just trying to build for the future
  107. <ada> then dont optimize for that variable ahead of time
  108. <KieronWiltshire> okay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement