Code Monkey home page Code Monkey logo

Comments (3)

Hnefi avatar Hnefi commented on July 18, 2024

Hi Arnab:
This is an advanced use case that will require some more thinking on our end, since there are 2 levels of virtualization involved now (QEMU/KVM and docker running inside the VMs). Just a few additional questions for you:

  • Are you running all of these containers on the same VM?
  • What is your DHCP setup? I am assuming that you are running the DHCP daemon on the host server and it is assigning your VMs IPs?
  • Which QEMU networking frontend are you using?
  • Using host network inside the VM means that all of the traffic from the containers should pass through the emulated I/O interface exposed by QEMU. However, if the docker stack is not working harmoniously with that emulated interface, it can cause problems.

A 502 error is likely meaning that the networking setup is the issue, as it signals that the entire HTTP request was not successfully completed.

from cloudsuite.

Arnab035 avatar Arnab035 commented on July 18, 2024

Hi Mark,
Thank you for your reply.

  • I use the same VM to run all of the Docker images (webserver, client, memcache, mysql_server).
  • No the guest OS inside the VM will set up a virtual DHCP server that will assign IPs to the VM. The VMs will be assigned IPs starting from 10.0.2.15.
  • I use the user-mode networking feature inside of QEMU. This will allow the guest VMs access to the internet but the ICMP protocol will not work inside of the VM (normal TCP/UDP works fine). This could be a helpful link to know - ( https://en.wikibooks.org/wiki/QEMU/Networking ) if you are unaware.
  • The fact that we use --net=host when we run the docker images imposes the host network for the Docker containers. And yes, it could be that a different networking setup will be needed.

Note:
We tried investigating into more details about the issue and when we tried looking into the nginx server logs - we got repeated messages like this
child #n terminated because of SIGBUS errors: core dumped (where n > 1)

Regards,
Arnab

from cloudsuite.

neo-apz avatar neo-apz commented on July 18, 2024

I'm closing this for now.
Feel free to reopen it if you have any further questions.

from cloudsuite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.