Simulate connection problems in container

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am debugging an issue with application which connects to RabbitMQ.
So I have docker-compose file with 2 containers: my app and RebbitMQ.



I would like to see what is going on if there are serious connection problems.



My first idea was to exec to docker container running rabbit and type:




ifconfig eth0 down




Unfortunately this is not allowed in containers and i get: Permission denied.



What other options do I have? (currently RabbitMQ is alpine-based so there are not much tools pre-installed but I can easily switch my test RabbitMQ container to another distro).







share|improve this question




















  • If the containers are set up with the same network group, can you not just bring down the network?
    – Raman Sailopal
    Feb 8 at 11:41














up vote
0
down vote

favorite












I am debugging an issue with application which connects to RabbitMQ.
So I have docker-compose file with 2 containers: my app and RebbitMQ.



I would like to see what is going on if there are serious connection problems.



My first idea was to exec to docker container running rabbit and type:




ifconfig eth0 down




Unfortunately this is not allowed in containers and i get: Permission denied.



What other options do I have? (currently RabbitMQ is alpine-based so there are not much tools pre-installed but I can easily switch my test RabbitMQ container to another distro).







share|improve this question




















  • If the containers are set up with the same network group, can you not just bring down the network?
    – Raman Sailopal
    Feb 8 at 11:41












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am debugging an issue with application which connects to RabbitMQ.
So I have docker-compose file with 2 containers: my app and RebbitMQ.



I would like to see what is going on if there are serious connection problems.



My first idea was to exec to docker container running rabbit and type:




ifconfig eth0 down




Unfortunately this is not allowed in containers and i get: Permission denied.



What other options do I have? (currently RabbitMQ is alpine-based so there are not much tools pre-installed but I can easily switch my test RabbitMQ container to another distro).







share|improve this question












I am debugging an issue with application which connects to RabbitMQ.
So I have docker-compose file with 2 containers: my app and RebbitMQ.



I would like to see what is going on if there are serious connection problems.



My first idea was to exec to docker container running rabbit and type:




ifconfig eth0 down




Unfortunately this is not allowed in containers and i get: Permission denied.



What other options do I have? (currently RabbitMQ is alpine-based so there are not much tools pre-installed but I can easily switch my test RabbitMQ container to another distro).









share|improve this question











share|improve this question




share|improve this question










asked Feb 8 at 11:32









Derp

4202616




4202616











  • If the containers are set up with the same network group, can you not just bring down the network?
    – Raman Sailopal
    Feb 8 at 11:41
















  • If the containers are set up with the same network group, can you not just bring down the network?
    – Raman Sailopal
    Feb 8 at 11:41















If the containers are set up with the same network group, can you not just bring down the network?
– Raman Sailopal
Feb 8 at 11:41




If the containers are set up with the same network group, can you not just bring down the network?
– Raman Sailopal
Feb 8 at 11:41










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










I used a special container between RabbitMQ and my app called muxy:



There are different kinds of so called "midleware" which you can add to this proxy in order to simulate different kinds of network problems.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f422779%2fsimulate-connection-problems-in-container%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    I used a special container between RabbitMQ and my app called muxy:



    There are different kinds of so called "midleware" which you can add to this proxy in order to simulate different kinds of network problems.






    share|improve this answer
























      up vote
      0
      down vote



      accepted










      I used a special container between RabbitMQ and my app called muxy:



      There are different kinds of so called "midleware" which you can add to this proxy in order to simulate different kinds of network problems.






      share|improve this answer






















        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        I used a special container between RabbitMQ and my app called muxy:



        There are different kinds of so called "midleware" which you can add to this proxy in order to simulate different kinds of network problems.






        share|improve this answer












        I used a special container between RabbitMQ and my app called muxy:



        There are different kinds of so called "midleware" which you can add to this proxy in order to simulate different kinds of network problems.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 12 at 8:49









        Derp

        4202616




        4202616






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f422779%2fsimulate-connection-problems-in-container%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?