When using cache.xml file you are effectively not using the cluster configuration.
In order for this cluster configuration to do its job, you will have to define all the regions and pdx-serializers, etc using gfsh. This way cluster configuration can replicate the configuration to all servers without explicit loading. --Udo On Thu, Sep 14, 2017 at 12:47 PM, Xu, Nan <[email protected]> wrote: > Hi, > > Question about start up the server, when I start first server like this, > the jar contains the object already deployed with deploy --jar=xxx > > :gfsh> start server --name=server1 --cache-xml-file=cache.xml > > Do I need to deploy to second server and start server --name=server2 > --cache-xml-file=cache.xml? > > Or the configuration server handle this? > > Thanks, > Nan > > > > <cache > xmlns="http://geode.apache.org/schema/cache" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://geode.apache.org/schema/cache > http://geode.apache.org/schema/cache/cache-1.0.xsd" > version="1.0"> > <cache-server port="40404" /> > <!--pdx read-serialized="true"> > <pdx-serializer> > <class-name>bridgeGeode.pojo.BridgePdxSerializer</class-name> > </pdx-serializer> > </pdx--> > <pdx> > <pdx-serializer> > <class-name> > org.apache.geode.pdx.ReflectionBasedAutoSerializer > </class-name> > <parameter name="classes"> > <string>com.company.GeodeEntry,com.company.GeodeMeta, com.company. > GeodeAccessTimePair</string> > </parameter> > </pdx-serializer> > </pdx> > <region name="test"> > <region-attributes refid="PARTITION"/> > </region> > <region name="test_meta"> > <region-attributes refid="PARTITION"> > <partition-attributes colocated-with="test"/> > </region-attributes> > </region> > <region name="test_accessTime"> > <region-attributes refid="PARTITION"> > <partition-attributes colocated-with="test"/> > </region-attributes> > </region> > </cache> > > ---------------------------------------------------------------------- > This message, and any attachments, is for the intended recipient(s) only, > may contain information that is privileged, confidential and/or proprietary > and subject to important terms and conditions available at > http://www.bankofamerica.com/emaildisclaimer. If you are not the > intended recipient, please delete this message. > -- Kindest Regards ----------------------------- *Udo Kohlmeyer* | *Snr Solutions Architect* |*Pivotal* *Mobile:* +61 409-279-160 | [email protected] <http://www.gopivotal.com/> www.pivotal.io
