You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/03 17:56:04 UTC

[jira] [Commented] (GEODE-2853) Change of locator list request interval

    [ https://issues.apache.org/jira/browse/GEODE-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995331#comment-15995331 ] 

ASF GitHub Bot commented on GEODE-2853:
---------------------------------------

Github user bschuchardt commented on a diff in the pull request:

    https://github.com/apache/geode/pull/483#discussion_r114611067
  
    --- Diff: geode-core/src/test/java/org/apache/geode/cache/client/internal/LocatorTestBase.java ---
    @@ -289,6 +289,13 @@ public void run() throws Exception {
         }
       }
     
    +  protected void startBridgeClient(final String group, final String host, final int port,
    --- End diff --
    
    Since this method is setting system properties I don't think it is appropriate to have it in LocatorTestBase.  You should move it to AutoConnectionSourceDUnitTest and use the DistributedRestoreSystemProperties rule to ensure that the properties are cleaned up.  To do that, add this to AutoConnectionSourceDUnitTest:
    
      @Rule
      public DistributedRestoreSystemProperties restoreSystemProperties =
          new DistributedRestoreSystemProperties();



> Change of locator list request interval
> ---------------------------------------
>
>                 Key: GEODE-2853
>                 URL: https://issues.apache.org/jira/browse/GEODE-2853
>             Project: Geode
>          Issue Type: Improvement
>          Components: client/server
>            Reporter: Masaki Yamakawa
>            Priority: Minor
>
> If you connect to a Geode cluster using a locator from the client, the locator list request will be executed at regular intervals in the background thread. I want to tune this interval. I understand that this interval can be changed by the ping-interval of the Pool attribute. However, I think that ping-interval originally sets the ping interval for health check to the cache server. Therefore, it is not possible to change the locator list request interval without changing the health check interval to the cache server. So,I want to add a java system property that can change the locator list request interval.
> The locator list request interval is determined by the following priority order.
>   1. java system property "gemfire.LOCATOR_UPDATE_INTERVAL"
>   2. ping-interval of the Pool attribute
> In addition, when changing this time, the background thread is activated only when this value is a positive value.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)