You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Eric Shu (Jira)" <ji...@apache.org> on 2019/11/21 00:21:00 UTC

[jira] [Commented] (GEODE-7477) In Geode session management for Tomcat module, the default setting of enableLocalCache for client/server is different from the docs

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

Eric Shu commented on GEODE-7477:
---------------------------------

This only affects testing.

> In Geode session management for Tomcat module, the default setting of enableLocalCache for client/server is different from the docs
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-7477
>                 URL: https://issues.apache.org/jira/browse/GEODE-7477
>             Project: Geode
>          Issue Type: Bug
>          Components: http session
>            Reporter: Eric Shu
>            Assignee: Eric Shu
>            Priority: Major
>              Labels: GeodeCommons
>
> Here is the documentation on enableLocalCache (Changing the Default Geode Configuration in the Tomcat Module)
> enableLocalCache
> Whether a local cache is enabled. If this parameter is set to true, the app server load balancer should be configured for sticky session mode.
> Default: false for peer-to-peer, true for client/server
> However, current geode implementation always default to false for both peer-to-peer and client/sever cache.
> {code}
>   public TomcatContainer(TomcatInstall install, File containerConfigHome,
>       String containerDescriptors, IntSupplier portSupplier) throws IOException {
>     super(install, containerConfigHome, containerDescriptors, portSupplier);
>     // Setup container specific XML files
>     contextXMLFile = new File(cargoLogDir.getAbsolutePath() + "/context.xml");
>     serverXMLFile = new File(DEFAULT_CONF_DIR + "server.xml");
>     // Copy the default container context XML file from the install to the specified path
>     FileUtils.copyFile(new File(DEFAULT_CONF_DIR + "context.xml"), contextXMLFile);
>     // Set the container context XML file to the new location copied to above
>     setConfigFile(contextXMLFile.getAbsolutePath(), DEFAULT_TOMCAT_XML_REPLACEMENT_DIR,
>         DEFAULT_TOMCAT_CONTEXT_XML_REPLACEMENT_NAME);
>     // Default properties
> -->    setCacheProperty("enableLocalCache", "false");
>     setCacheProperty("className", install.getContextSessionManagerClass());
>     // Deploy war file to container configuration
>     deployWar();
>     // Setup the default installations locators
>     setLocator(install.getDefaultLocatorAddress(), install.getDefaultLocatorPort());
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)