How to start `redis-sentinel` server successfully












0














Sorry redis newbie here.



When I run redis-sentinel



42533:X 10 Nov 21:21:30.345 # Warning: no config file specified, using 
the default config. In order to specify a config file use redis-
sentinel /path/to/sentinel.conf
42533:X 10 Nov 21:21:30.346 * Increased maximum number of open files to
10032 (it was originally set to 7168).
Redis 3.0.4 (00000000/0) 64 bit

Running in sentinel mode
Port: 26379
PID: 42533
http://redis.io

42533:X 10 Nov 21:21:30.347 # Sentinel runid is
733213860cf470431c7441e5d6aaf9ed9b2d7c2f
42533:X 10 Nov 21:21:30.347 # Sentinel started without a config file.
Exiting...


What am I missing? Do I need a configuration file? If so where should my /path/to/sentinel.conf be?










share|improve this question



























    0














    Sorry redis newbie here.



    When I run redis-sentinel



    42533:X 10 Nov 21:21:30.345 # Warning: no config file specified, using 
    the default config. In order to specify a config file use redis-
    sentinel /path/to/sentinel.conf
    42533:X 10 Nov 21:21:30.346 * Increased maximum number of open files to
    10032 (it was originally set to 7168).
    Redis 3.0.4 (00000000/0) 64 bit

    Running in sentinel mode
    Port: 26379
    PID: 42533
    http://redis.io

    42533:X 10 Nov 21:21:30.347 # Sentinel runid is
    733213860cf470431c7441e5d6aaf9ed9b2d7c2f
    42533:X 10 Nov 21:21:30.347 # Sentinel started without a config file.
    Exiting...


    What am I missing? Do I need a configuration file? If so where should my /path/to/sentinel.conf be?










    share|improve this question

























      0












      0








      0







      Sorry redis newbie here.



      When I run redis-sentinel



      42533:X 10 Nov 21:21:30.345 # Warning: no config file specified, using 
      the default config. In order to specify a config file use redis-
      sentinel /path/to/sentinel.conf
      42533:X 10 Nov 21:21:30.346 * Increased maximum number of open files to
      10032 (it was originally set to 7168).
      Redis 3.0.4 (00000000/0) 64 bit

      Running in sentinel mode
      Port: 26379
      PID: 42533
      http://redis.io

      42533:X 10 Nov 21:21:30.347 # Sentinel runid is
      733213860cf470431c7441e5d6aaf9ed9b2d7c2f
      42533:X 10 Nov 21:21:30.347 # Sentinel started without a config file.
      Exiting...


      What am I missing? Do I need a configuration file? If so where should my /path/to/sentinel.conf be?










      share|improve this question













      Sorry redis newbie here.



      When I run redis-sentinel



      42533:X 10 Nov 21:21:30.345 # Warning: no config file specified, using 
      the default config. In order to specify a config file use redis-
      sentinel /path/to/sentinel.conf
      42533:X 10 Nov 21:21:30.346 * Increased maximum number of open files to
      10032 (it was originally set to 7168).
      Redis 3.0.4 (00000000/0) 64 bit

      Running in sentinel mode
      Port: 26379
      PID: 42533
      http://redis.io

      42533:X 10 Nov 21:21:30.347 # Sentinel runid is
      733213860cf470431c7441e5d6aaf9ed9b2d7c2f
      42533:X 10 Nov 21:21:30.347 # Sentinel started without a config file.
      Exiting...


      What am I missing? Do I need a configuration file? If so where should my /path/to/sentinel.conf be?







      redis redis-sentinel redis-server






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 11 at 2:42









      srm

      185414




      185414
























          1 Answer
          1






          active

          oldest

          votes


















          0














          It is mandatory to use a configuration file when running Sentinel, as this file will be used by the system in order to save the current state that will be reloaded in case of restarts. Sentinel will simply refuse to start if no configuration file is given or if the configuration file path is not writable.



          you can run Sentinel with the following command line:



          redis-sentinel /path/to/sentinel.conf


          Otherwise you can use directly the redis-server executable starting it in Sentinel mode:



          redis-server /path/to/sentinel.conf --sentinel


          You can put the file anywhere you want, just make sure you are providing the right path for that. For example, if you are in linux and if the file is inside your home directory, then the command will be



          redis-sentinel ~/sentinel.conf





          share|improve this answer





















          • Awesome thanks. I was able to do that with the following result, does everything look ok? # Sentinel sentinel_masters:1 sentinel_tilt:0 sentinel_running_scripts:0 sentinel_scripts_queue_length:0 master0:name=mymaster,status=odown,address=127.0.0.1:6666,slaves=2,sentinels=1 Is Status = odown correct? I am still getting No sentinels available. (Redis::CannotConnectError) from my rails application but that might be because my config in rails is wrong
            – srm
            Nov 11 at 13:56













          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%2f53245394%2fhow-to-start-redis-sentinel-server-successfully%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









          0














          It is mandatory to use a configuration file when running Sentinel, as this file will be used by the system in order to save the current state that will be reloaded in case of restarts. Sentinel will simply refuse to start if no configuration file is given or if the configuration file path is not writable.



          you can run Sentinel with the following command line:



          redis-sentinel /path/to/sentinel.conf


          Otherwise you can use directly the redis-server executable starting it in Sentinel mode:



          redis-server /path/to/sentinel.conf --sentinel


          You can put the file anywhere you want, just make sure you are providing the right path for that. For example, if you are in linux and if the file is inside your home directory, then the command will be



          redis-sentinel ~/sentinel.conf





          share|improve this answer





















          • Awesome thanks. I was able to do that with the following result, does everything look ok? # Sentinel sentinel_masters:1 sentinel_tilt:0 sentinel_running_scripts:0 sentinel_scripts_queue_length:0 master0:name=mymaster,status=odown,address=127.0.0.1:6666,slaves=2,sentinels=1 Is Status = odown correct? I am still getting No sentinels available. (Redis::CannotConnectError) from my rails application but that might be because my config in rails is wrong
            – srm
            Nov 11 at 13:56


















          0














          It is mandatory to use a configuration file when running Sentinel, as this file will be used by the system in order to save the current state that will be reloaded in case of restarts. Sentinel will simply refuse to start if no configuration file is given or if the configuration file path is not writable.



          you can run Sentinel with the following command line:



          redis-sentinel /path/to/sentinel.conf


          Otherwise you can use directly the redis-server executable starting it in Sentinel mode:



          redis-server /path/to/sentinel.conf --sentinel


          You can put the file anywhere you want, just make sure you are providing the right path for that. For example, if you are in linux and if the file is inside your home directory, then the command will be



          redis-sentinel ~/sentinel.conf





          share|improve this answer





















          • Awesome thanks. I was able to do that with the following result, does everything look ok? # Sentinel sentinel_masters:1 sentinel_tilt:0 sentinel_running_scripts:0 sentinel_scripts_queue_length:0 master0:name=mymaster,status=odown,address=127.0.0.1:6666,slaves=2,sentinels=1 Is Status = odown correct? I am still getting No sentinels available. (Redis::CannotConnectError) from my rails application but that might be because my config in rails is wrong
            – srm
            Nov 11 at 13:56
















          0












          0








          0






          It is mandatory to use a configuration file when running Sentinel, as this file will be used by the system in order to save the current state that will be reloaded in case of restarts. Sentinel will simply refuse to start if no configuration file is given or if the configuration file path is not writable.



          you can run Sentinel with the following command line:



          redis-sentinel /path/to/sentinel.conf


          Otherwise you can use directly the redis-server executable starting it in Sentinel mode:



          redis-server /path/to/sentinel.conf --sentinel


          You can put the file anywhere you want, just make sure you are providing the right path for that. For example, if you are in linux and if the file is inside your home directory, then the command will be



          redis-sentinel ~/sentinel.conf





          share|improve this answer












          It is mandatory to use a configuration file when running Sentinel, as this file will be used by the system in order to save the current state that will be reloaded in case of restarts. Sentinel will simply refuse to start if no configuration file is given or if the configuration file path is not writable.



          you can run Sentinel with the following command line:



          redis-sentinel /path/to/sentinel.conf


          Otherwise you can use directly the redis-server executable starting it in Sentinel mode:



          redis-server /path/to/sentinel.conf --sentinel


          You can put the file anywhere you want, just make sure you are providing the right path for that. For example, if you are in linux and if the file is inside your home directory, then the command will be



          redis-sentinel ~/sentinel.conf






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 11 at 4:32









          Monzurul Haque Shimul

          4,9082825




          4,9082825












          • Awesome thanks. I was able to do that with the following result, does everything look ok? # Sentinel sentinel_masters:1 sentinel_tilt:0 sentinel_running_scripts:0 sentinel_scripts_queue_length:0 master0:name=mymaster,status=odown,address=127.0.0.1:6666,slaves=2,sentinels=1 Is Status = odown correct? I am still getting No sentinels available. (Redis::CannotConnectError) from my rails application but that might be because my config in rails is wrong
            – srm
            Nov 11 at 13:56




















          • Awesome thanks. I was able to do that with the following result, does everything look ok? # Sentinel sentinel_masters:1 sentinel_tilt:0 sentinel_running_scripts:0 sentinel_scripts_queue_length:0 master0:name=mymaster,status=odown,address=127.0.0.1:6666,slaves=2,sentinels=1 Is Status = odown correct? I am still getting No sentinels available. (Redis::CannotConnectError) from my rails application but that might be because my config in rails is wrong
            – srm
            Nov 11 at 13:56


















          Awesome thanks. I was able to do that with the following result, does everything look ok? # Sentinel sentinel_masters:1 sentinel_tilt:0 sentinel_running_scripts:0 sentinel_scripts_queue_length:0 master0:name=mymaster,status=odown,address=127.0.0.1:6666,slaves=2,sentinels=1 Is Status = odown correct? I am still getting No sentinels available. (Redis::CannotConnectError) from my rails application but that might be because my config in rails is wrong
          – srm
          Nov 11 at 13:56






          Awesome thanks. I was able to do that with the following result, does everything look ok? # Sentinel sentinel_masters:1 sentinel_tilt:0 sentinel_running_scripts:0 sentinel_scripts_queue_length:0 master0:name=mymaster,status=odown,address=127.0.0.1:6666,slaves=2,sentinels=1 Is Status = odown correct? I am still getting No sentinels available. (Redis::CannotConnectError) from my rails application but that might be because my config in rails is wrong
          – srm
          Nov 11 at 13:56




















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f53245394%2fhow-to-start-redis-sentinel-server-successfully%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







          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini