ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Containers in IT

    IT Discussion
    docker lxc containers
    8
    39
    6.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dafyreD
      dafyre
      last edited by

      One of the benefits that virtualization has that Containers don't really have yet, is the ability to live migrate an existing VM from one host to another. Containers don't really have a way to do that yet, that I am aware of.

      I realize that with containers, spinning up a new machine is easy and fast, but you lose the data that was in the original container if I understand the way the work correctly.

      scottalanmillerS 2 Replies Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @dafyre
        last edited by

        @dafyre said:

        I realize that with containers, spinning up a new machine is easy and fast, but you lose the data that was in the original container if I understand the way the work correctly.

        I idea is that containers should be stateless. Nothing makes this true at the technology level, of course, but the idea is that things like databases don't run in containers, only stateless application code. So there should be nothing to migrate over.

        DashrenderD 1 Reply Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller @dafyre
          last edited by

          @dafyre said:

          One of the benefits that virtualization has that Containers don't really have yet, is the ability to live migrate an existing VM from one host to another. Containers don't really have a way to do that yet, that I am aware of.

          All of the robust tooling around VMs is lacking. And even the more mature containers have been replaced so all of the major technologies are brand new.

          1 Reply Last reply Reply Quote 1
          • DashrenderD
            Dashrender @scottalanmiller
            last edited by

            @scottalanmiller said:

            @dafyre said:

            I realize that with containers, spinning up a new machine is easy and fast, but you lose the data that was in the original container if I understand the way the work correctly.

            I idea is that containers should be stateless. Nothing makes this true at the technology level, of course, but the idea is that things like databases don't run in containers, only stateless application code. So there should be nothing to migrate over.

            For us noobs, can you give an example or two of stateless things used in containers?

            coliverC scottalanmillerS 2 Replies Last reply Reply Quote 0
            • coliverC
              coliver @Dashrender
              last edited by

              @Dashrender said:

              @scottalanmiller said:

              @dafyre said:

              I realize that with containers, spinning up a new machine is easy and fast, but you lose the data that was in the original container if I understand the way the work correctly.

              I idea is that containers should be stateless. Nothing makes this true at the technology level, of course, but the idea is that things like databases don't run in containers, only stateless application code. So there should be nothing to migrate over.

              For us noobs, can you give an example or two of stateless things used in containers?

              Webservers or proxies/load balancers would be my first guess.

              scottalanmillerS 1 Reply Last reply Reply Quote 1
              • scottalanmillerS
                scottalanmiller @Dashrender
                last edited by

                @Dashrender said:

                For us noobs, can you give an example or two of stateless things used in containers?

                Anything that doesn't contain data. So databases and file servers are the key examples that are NOT good for containers. Mostly, everything else is.

                Any application or processing or networking system would be stateless.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @coliver
                  last edited by

                  @coliver said:

                  Webservers or proxies/load balancers would be my first guess.

                  Yes, application servers (web or otherwise) are the vast majority of these.

                  dafyreD 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    Some people put database clusters into containers with the understanding that they have to all be in sync all the time and that at least three or more have to never shut down. I don't like that model, though.

                    1 Reply Last reply Reply Quote 0
                    • dafyreD
                      dafyre @scottalanmiller
                      last edited by dafyre

                      @scottalanmiller said:

                      @coliver said:

                      Webservers or proxies/load balancers would be my first guess.

                      Yes, application servers (web or otherwise) are the vast majority of these.

                      Pretty much anything that has relatively static content, right? You wouldn't host say... a Wordpress install in a container, would you?

                      Edit: Even if you do keep the Database server somewhere else.

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @dafyre
                        last edited by

                        @dafyre said:

                        Pretty much anything that has relatively static content, right? You wouldn't host say... a Wordpress install in a container, would you?

                        Normally yes and normally, yes. LOL. You would expect Wordpress to update very infrequently (other than what is in the database) and you would rebuild the container if and when that happened. Or you would put the non-static content, which is generally very tiny amounts, into a shared NFS share.

                        1 Reply Last reply Reply Quote 1
                        • DashrenderD
                          Dashrender
                          last edited by

                          So the application - the web daemon - can be in a container, and it just pulls data from sources behind it. OK.

                          This is for load balancing?

                          scottalanmillerS coliverC 2 Replies Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @Dashrender
                            last edited by

                            @Dashrender said:

                            So the application - the web daemon - can be in a container, and it just pulls data from sources behind it. OK.

                            This is for load balancing?

                            If it is a load balancer like HA-Proxy that we are discussing, yes.

                            1 Reply Last reply Reply Quote 0
                            • coliverC
                              coliver @Dashrender
                              last edited by

                              @Dashrender said:

                              So the application - the web daemon - can be in a container, and it just pulls data from sources behind it. OK.

                              This is for load balancing?

                              This is what I am wondering too. What is the advantage of a container over a VM? Both can be built and destroyed in moments but the VM has added flexibility that the container doesn't necessarily have. Would this be for performance and resource utilization?

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @coliver
                                last edited by

                                @coliver said:

                                @Dashrender said:

                                So the application - the web daemon - can be in a container, and it just pulls data from sources behind it. OK.

                                This is for load balancing?

                                This is what I am wondering too. What is the advantage of a container over a VM? Both can be built and destroyed in moments but the VM has added flexibility that the container doesn't necessarily have. Would this be for performance and resource utilization?

                                Containers are lighter and faster, have different licensing concerns, are smaller to deploy, smaller to store, easier to pass around, etc.

                                1 Reply Last reply Reply Quote 1
                                • scottalanmillerS
                                  scottalanmiller
                                  last edited by

                                  Also, containers provide some of these features for shops too small to have cloud to do this with VMs.

                                  dafyreD 1 Reply Last reply Reply Quote 0
                                  • dafyreD
                                    dafyre @scottalanmiller
                                    last edited by

                                    @scottalanmiller said:

                                    Also, containers provide some of these features for shops too small to have cloud to do this with VMs.

                                    Like you were talking about earlier... Doing both can be beneficial. Have a couple of big VMs for LXC containers, and what-not... You get the benefits of both virtualization and containers.

                                    1 Reply Last reply Reply Quote 2
                                    • scottalanmillerS
                                      scottalanmiller
                                      last edited by

                                      Yes, and I think that that is the direction that we will see most companies go.

                                      1 Reply Last reply Reply Quote 0
                                      • stacksofplatesS
                                        stacksofplates
                                        last edited by stacksofplates

                                        That's what I have. I have a VM that hosts LXC containers. I have XO in one container. It makes updating easy. I can use ansible to either clone the container and update XO or just fire up a new container and install XO quickly. I don't need things like reboot scripts then because I can just include that in the ansible playbook and reboots take about 1 second.

                                        It also allows me to pass variables to the playbook so I can install XO from different git branches.

                                        Another advantage is if you want to send a file to another container you can just copy from the container directory and put it inside the other container. Very quick with large files vs using the network. That is assuming you're using a dir backing store and not a logical volume or something else.

                                        1 Reply Last reply Reply Quote 2
                                        • stacksofplatesS
                                          stacksofplates
                                          last edited by

                                          Ubuntu is making some big strides with LXC. they call it LXD and it will have live migration of containers.

                                          scottalanmillerS 1 Reply Last reply Reply Quote 1
                                          • RamblingBipedR
                                            RamblingBiped
                                            last edited by

                                            I have a small EC2 instance running a containerized instance of discourse for a set of support forums we use for supporting a specific product. It has been up for ~8 months without issue.

                                            1 Reply Last reply Reply Quote 2
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post