Magento 2 - Cache warmer for multiple serverCron does not reschedule currency_rates_update job until Cache Storage is flushedProblems flushing Magento Redis Cache on an installation with a separate backend serverWhy Can't Magento Turn Off The Cache When Redis FailsWhat is the correct way to properly register & run automated cronjobs in Magento 2?Reasons to setup cronjob for setup:cron:run and update/cron.php on a deployed production system?Magento2: Pre-load cache after clean/flushMagento 2 run a specific Cron without cron:run CLI command?Magento 2 first request very slowMagento 2.2.4 - Modifying Cache configs via CLI or env.php not working when Opcache EnabledMagento 2 static content folder sync

Is a sequel allowed to start before the end of the first book?

How do credit card companies know what type of business I'm paying for?

My student in one course asks for paid tutoring in another course. Appropriate?

What is this airplane that sits in front of Barringer High School in Newark, NJ?

Got a new frameset, don't know why I need this split ring collar?

How to make all magic-casting innate, but still rare?

How valuable is a categorical feature that has a predominant category over all other ones?

How to make a villain when your PCs are villains?

How to prevent cables getting intertwined

If the mass of the Earth is decreasing by sending debris in space, does its angular momentum also decrease?

How is linear momentum conserved in circular motion?

How could I create a situation in which a PC has to make a saving throw or be forced to pet a dog?

How can the US president give an order to a civilian?

What is this plant I saw for sale at a Romanian farmer's market?

I wish, I yearn, for an answer to this riddle

I'm yearning in grey

Having some issue with notation in a Hilbert space

Is it a bad idea to have a pen name with only an initial for a surname?

Does knowing the surface area of all faces uniquely determine a tetrahedron?

How to sort human readable size

When is the phrase "j'ai bon" used?

How can I maintain game balance while allowing my player to craft genuinely useful items?

Are there examples of rowers who also fought?

Digital signature that is only verifiable by one specific person



Magento 2 - Cache warmer for multiple server


Cron does not reschedule currency_rates_update job until Cache Storage is flushedProblems flushing Magento Redis Cache on an installation with a separate backend serverWhy Can't Magento Turn Off The Cache When Redis FailsWhat is the correct way to properly register & run automated cronjobs in Magento 2?Reasons to setup cronjob for setup:cron:run and update/cron.php on a deployed production system?Magento2: Pre-load cache after clean/flushMagento 2 run a specific Cron without cron:run CLI command?Magento 2 first request very slowMagento 2.2.4 - Modifying Cache configs via CLI or env.php not working when Opcache EnabledMagento 2 static content folder sync






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








6















I have integrated a cache warmer module. Using cronjob it runs and creates cache for all the pages, and it's working properly.



I have multiple servers (Let's say 2 servers), until now there is no need to schedule cronjobs for all servers, I used to schedule cronjobs only on first server.



Since cache used local storage to save cached data, if I schedule cronjob on one server, then cache warmer wont work on other server.



Now my question is, how can I create cache for both servers while cron is scheduled on first server










share|improve this question






























    6















    I have integrated a cache warmer module. Using cronjob it runs and creates cache for all the pages, and it's working properly.



    I have multiple servers (Let's say 2 servers), until now there is no need to schedule cronjobs for all servers, I used to schedule cronjobs only on first server.



    Since cache used local storage to save cached data, if I schedule cronjob on one server, then cache warmer wont work on other server.



    Now my question is, how can I create cache for both servers while cron is scheduled on first server










    share|improve this question


























      6












      6








      6








      I have integrated a cache warmer module. Using cronjob it runs and creates cache for all the pages, and it's working properly.



      I have multiple servers (Let's say 2 servers), until now there is no need to schedule cronjobs for all servers, I used to schedule cronjobs only on first server.



      Since cache used local storage to save cached data, if I schedule cronjob on one server, then cache warmer wont work on other server.



      Now my question is, how can I create cache for both servers while cron is scheduled on first server










      share|improve this question
















      I have integrated a cache warmer module. Using cronjob it runs and creates cache for all the pages, and it's working properly.



      I have multiple servers (Let's say 2 servers), until now there is no need to schedule cronjobs for all servers, I used to schedule cronjobs only on first server.



      Since cache used local storage to save cached data, if I schedule cronjob on one server, then cache warmer wont work on other server.



      Now my question is, how can I create cache for both servers while cron is scheduled on first server







      magento2 magento2.2 cache cronjobs cache-warmer






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 10 at 6:14







      Shoaib Munir

















      asked Mar 22 at 6:27









      Shoaib MunirShoaib Munir

      3,52462267




      3,52462267




















          1 Answer
          1






          active

          oldest

          votes


















          5














          In local cache environment it is impossible to create cache for both servers while executing cron on one server.



          There is only one option left, make cache centralize.



          To do this you need to use either Varnish or Redis. I have read multiple articles and all of them saying that Varnish is better approach. But I have used AWS Elasticache Redis on my server as it is more cheap and I have less knowledge of Varnish right now :D



          To implement redis I have executed this command on shell (Putty)



          php bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=127.0.0.1 --page-cache-redis-db=1


          I have used my server details in above command (Obviously)



          And now I have centralized storage of Full Page Cache, and I have scheduled cronjob on one server and it is working fine for both servers.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2fmagento.stackexchange.com%2fquestions%2f266908%2fmagento-2-cache-warmer-for-multiple-server%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            5














            In local cache environment it is impossible to create cache for both servers while executing cron on one server.



            There is only one option left, make cache centralize.



            To do this you need to use either Varnish or Redis. I have read multiple articles and all of them saying that Varnish is better approach. But I have used AWS Elasticache Redis on my server as it is more cheap and I have less knowledge of Varnish right now :D



            To implement redis I have executed this command on shell (Putty)



            php bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=127.0.0.1 --page-cache-redis-db=1


            I have used my server details in above command (Obviously)



            And now I have centralized storage of Full Page Cache, and I have scheduled cronjob on one server and it is working fine for both servers.






            share|improve this answer



























              5














              In local cache environment it is impossible to create cache for both servers while executing cron on one server.



              There is only one option left, make cache centralize.



              To do this you need to use either Varnish or Redis. I have read multiple articles and all of them saying that Varnish is better approach. But I have used AWS Elasticache Redis on my server as it is more cheap and I have less knowledge of Varnish right now :D



              To implement redis I have executed this command on shell (Putty)



              php bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=127.0.0.1 --page-cache-redis-db=1


              I have used my server details in above command (Obviously)



              And now I have centralized storage of Full Page Cache, and I have scheduled cronjob on one server and it is working fine for both servers.






              share|improve this answer

























                5












                5








                5







                In local cache environment it is impossible to create cache for both servers while executing cron on one server.



                There is only one option left, make cache centralize.



                To do this you need to use either Varnish or Redis. I have read multiple articles and all of them saying that Varnish is better approach. But I have used AWS Elasticache Redis on my server as it is more cheap and I have less knowledge of Varnish right now :D



                To implement redis I have executed this command on shell (Putty)



                php bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=127.0.0.1 --page-cache-redis-db=1


                I have used my server details in above command (Obviously)



                And now I have centralized storage of Full Page Cache, and I have scheduled cronjob on one server and it is working fine for both servers.






                share|improve this answer













                In local cache environment it is impossible to create cache for both servers while executing cron on one server.



                There is only one option left, make cache centralize.



                To do this you need to use either Varnish or Redis. I have read multiple articles and all of them saying that Varnish is better approach. But I have used AWS Elasticache Redis on my server as it is more cheap and I have less knowledge of Varnish right now :D



                To implement redis I have executed this command on shell (Putty)



                php bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=127.0.0.1 --page-cache-redis-db=1


                I have used my server details in above command (Obviously)



                And now I have centralized storage of Full Page Cache, and I have scheduled cronjob on one server and it is working fine for both servers.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 10 at 5:40









                Shoaib MunirShoaib Munir

                3,52462267




                3,52462267



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • 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%2fmagento.stackexchange.com%2fquestions%2f266908%2fmagento-2-cache-warmer-for-multiple-server%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







                    Popular posts from this blog

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                    Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?