How to change the dask scheduler and workers?












1















I am newbie to dask and distributed. I want to change the dask scheduler instead of localhost to use another address of a server. I didn't find how to do it in the internet.



Could you help me please ?



Thanks.










share|improve this question



























    1















    I am newbie to dask and distributed. I want to change the dask scheduler instead of localhost to use another address of a server. I didn't find how to do it in the internet.



    Could you help me please ?



    Thanks.










    share|improve this question

























      1












      1








      1








      I am newbie to dask and distributed. I want to change the dask scheduler instead of localhost to use another address of a server. I didn't find how to do it in the internet.



      Could you help me please ?



      Thanks.










      share|improve this question














      I am newbie to dask and distributed. I want to change the dask scheduler instead of localhost to use another address of a server. I didn't find how to do it in the internet.



      Could you help me please ?



      Thanks.







      python distributed dask






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 '18 at 8:46









      user10640700user10640700

      111




      111
























          2 Answers
          2






          active

          oldest

          votes


















          0














          I suppose you can just pass the IP of a server into a worker constructor, like it's done it the docs http://docs.dask.org/en/latest/setup/python-advanced.html?highlight=scheduler#worker



          w = Worker('tcp://{your_ip_here}:8786')





          share|improve this answer
























          • Thanks for your answer, I want to know which file to modify ?

            – user10640700
            Nov 20 '18 at 9:29











          • How have you setup your project?

            – George Bekh-Ivanov
            Nov 20 '18 at 10:00











          • I get this project from an intern, so what I found is a file config.xml which configured to use the server

            – user10640700
            Nov 20 '18 at 10:05











          • Is your issue solved then?

            – George Bekh-Ivanov
            Nov 20 '18 at 10:07











          • When I put my ip address in the config file it seems to work

            – user10640700
            Nov 20 '18 at 10:25



















          0














          From the user session's point of view, you connect to the remote Dask scheduler using the client:



          client = dask.distributed.Client('tcp://machine.ip:port')


          where you need to fill in the machine's address and port as appropriate. You should not be constructing a Worker in your session, I am assuming that you scheduler already has some workers set up to talk to.



          Yes, there are also ways to include the default address in config files, including having the scheduler write it for you on start-up, but the XML file you mention is unlikely to be something directly read by Dask. On the other hand, whoever designed your system may have its own config layer.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53389185%2fhow-to-change-the-dask-scheduler-and-workers%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I suppose you can just pass the IP of a server into a worker constructor, like it's done it the docs http://docs.dask.org/en/latest/setup/python-advanced.html?highlight=scheduler#worker



            w = Worker('tcp://{your_ip_here}:8786')





            share|improve this answer
























            • Thanks for your answer, I want to know which file to modify ?

              – user10640700
              Nov 20 '18 at 9:29











            • How have you setup your project?

              – George Bekh-Ivanov
              Nov 20 '18 at 10:00











            • I get this project from an intern, so what I found is a file config.xml which configured to use the server

              – user10640700
              Nov 20 '18 at 10:05











            • Is your issue solved then?

              – George Bekh-Ivanov
              Nov 20 '18 at 10:07











            • When I put my ip address in the config file it seems to work

              – user10640700
              Nov 20 '18 at 10:25
















            0














            I suppose you can just pass the IP of a server into a worker constructor, like it's done it the docs http://docs.dask.org/en/latest/setup/python-advanced.html?highlight=scheduler#worker



            w = Worker('tcp://{your_ip_here}:8786')





            share|improve this answer
























            • Thanks for your answer, I want to know which file to modify ?

              – user10640700
              Nov 20 '18 at 9:29











            • How have you setup your project?

              – George Bekh-Ivanov
              Nov 20 '18 at 10:00











            • I get this project from an intern, so what I found is a file config.xml which configured to use the server

              – user10640700
              Nov 20 '18 at 10:05











            • Is your issue solved then?

              – George Bekh-Ivanov
              Nov 20 '18 at 10:07











            • When I put my ip address in the config file it seems to work

              – user10640700
              Nov 20 '18 at 10:25














            0












            0








            0







            I suppose you can just pass the IP of a server into a worker constructor, like it's done it the docs http://docs.dask.org/en/latest/setup/python-advanced.html?highlight=scheduler#worker



            w = Worker('tcp://{your_ip_here}:8786')





            share|improve this answer













            I suppose you can just pass the IP of a server into a worker constructor, like it's done it the docs http://docs.dask.org/en/latest/setup/python-advanced.html?highlight=scheduler#worker



            w = Worker('tcp://{your_ip_here}:8786')






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 20 '18 at 9:11









            George Bekh-IvanovGeorge Bekh-Ivanov

            13




            13













            • Thanks for your answer, I want to know which file to modify ?

              – user10640700
              Nov 20 '18 at 9:29











            • How have you setup your project?

              – George Bekh-Ivanov
              Nov 20 '18 at 10:00











            • I get this project from an intern, so what I found is a file config.xml which configured to use the server

              – user10640700
              Nov 20 '18 at 10:05











            • Is your issue solved then?

              – George Bekh-Ivanov
              Nov 20 '18 at 10:07











            • When I put my ip address in the config file it seems to work

              – user10640700
              Nov 20 '18 at 10:25



















            • Thanks for your answer, I want to know which file to modify ?

              – user10640700
              Nov 20 '18 at 9:29











            • How have you setup your project?

              – George Bekh-Ivanov
              Nov 20 '18 at 10:00











            • I get this project from an intern, so what I found is a file config.xml which configured to use the server

              – user10640700
              Nov 20 '18 at 10:05











            • Is your issue solved then?

              – George Bekh-Ivanov
              Nov 20 '18 at 10:07











            • When I put my ip address in the config file it seems to work

              – user10640700
              Nov 20 '18 at 10:25

















            Thanks for your answer, I want to know which file to modify ?

            – user10640700
            Nov 20 '18 at 9:29





            Thanks for your answer, I want to know which file to modify ?

            – user10640700
            Nov 20 '18 at 9:29













            How have you setup your project?

            – George Bekh-Ivanov
            Nov 20 '18 at 10:00





            How have you setup your project?

            – George Bekh-Ivanov
            Nov 20 '18 at 10:00













            I get this project from an intern, so what I found is a file config.xml which configured to use the server

            – user10640700
            Nov 20 '18 at 10:05





            I get this project from an intern, so what I found is a file config.xml which configured to use the server

            – user10640700
            Nov 20 '18 at 10:05













            Is your issue solved then?

            – George Bekh-Ivanov
            Nov 20 '18 at 10:07





            Is your issue solved then?

            – George Bekh-Ivanov
            Nov 20 '18 at 10:07













            When I put my ip address in the config file it seems to work

            – user10640700
            Nov 20 '18 at 10:25





            When I put my ip address in the config file it seems to work

            – user10640700
            Nov 20 '18 at 10:25













            0














            From the user session's point of view, you connect to the remote Dask scheduler using the client:



            client = dask.distributed.Client('tcp://machine.ip:port')


            where you need to fill in the machine's address and port as appropriate. You should not be constructing a Worker in your session, I am assuming that you scheduler already has some workers set up to talk to.



            Yes, there are also ways to include the default address in config files, including having the scheduler write it for you on start-up, but the XML file you mention is unlikely to be something directly read by Dask. On the other hand, whoever designed your system may have its own config layer.






            share|improve this answer




























              0














              From the user session's point of view, you connect to the remote Dask scheduler using the client:



              client = dask.distributed.Client('tcp://machine.ip:port')


              where you need to fill in the machine's address and port as appropriate. You should not be constructing a Worker in your session, I am assuming that you scheduler already has some workers set up to talk to.



              Yes, there are also ways to include the default address in config files, including having the scheduler write it for you on start-up, but the XML file you mention is unlikely to be something directly read by Dask. On the other hand, whoever designed your system may have its own config layer.






              share|improve this answer


























                0












                0








                0







                From the user session's point of view, you connect to the remote Dask scheduler using the client:



                client = dask.distributed.Client('tcp://machine.ip:port')


                where you need to fill in the machine's address and port as appropriate. You should not be constructing a Worker in your session, I am assuming that you scheduler already has some workers set up to talk to.



                Yes, there are also ways to include the default address in config files, including having the scheduler write it for you on start-up, but the XML file you mention is unlikely to be something directly read by Dask. On the other hand, whoever designed your system may have its own config layer.






                share|improve this answer













                From the user session's point of view, you connect to the remote Dask scheduler using the client:



                client = dask.distributed.Client('tcp://machine.ip:port')


                where you need to fill in the machine's address and port as appropriate. You should not be constructing a Worker in your session, I am assuming that you scheduler already has some workers set up to talk to.



                Yes, there are also ways to include the default address in config files, including having the scheduler write it for you on start-up, but the XML file you mention is unlikely to be something directly read by Dask. On the other hand, whoever designed your system may have its own config layer.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 20 '18 at 21:53









                mdurantmdurant

                10.8k11437




                10.8k11437






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53389185%2fhow-to-change-the-dask-scheduler-and-workers%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    這個網誌中的熱門文章

                    Xamarin.form Move up view when keyboard appear

                    Post-Redirect-Get with Spring WebFlux and Thymeleaf

                    Anylogic : not able to use stopDelay()