Client connection failover during rolling upgrade in openshift kubernetes container of hazelcast

38 views
Skip to first unread message

Anup Agrawal

unread,
May 12, 2018, 1:50:45 PM5/12/18
to haze...@googlegroups.com
Hi, 

We are using hazelcast with openshift and kubernetes discovery strategy config. However it seems during rolling upgrade, client is unable to failover to other node. We got authentication exception.. do you know what could be reason for this? How can we enable client to switch to another member.

We are using server as 3.8 and client as 3.9.

Pls help.


Regards,
Anup

On Thu, 10 May 2018, 10:12 pm desiree.klecker via Hazelcast, <haze...@googlegroups.com> wrote:


Am Mittwoch, 9. Mai 2018 00:30:44 UTC+2 schrieb desiree...@googlemail.com:
Hello,

I am interested in the composition of configuration elemens.

I use the <import resource= ... statement to compose my configuration as described in Mastering Hazelcast.

I follow straightly the example in Mastering Hazelcast applying the tip (You need to use the <import/> element on the top level of the XML hierarchy):

File hazelcast.xml
<hazelcast xmlns="http://www.hazelcast.com/schema/config"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://www.hazelcast.com/schema/config
           http://www.hazelcast.com/schema/config/hazelcast-config-3.9.xsd">
    <import resource="development-group-config.xml" />
    <import resource="development-network-config.xml" />
    <import resource="development-imap-config.xml" />
</hazelcast>

File development-group-config.xml
<hazelcast>
    <group>
        <name>dev</name>
        <password>dev-pass</password>
    </group>
</hazelcast>

File development-network-config.xml
<hazelcast>
    <network>
        <port auto-increment="true" port-count="100">5701</port>
        <join>
            <multicast enabled="true">
                <multicast-group>224.2.2.3</multicast-group>
                <multicast-port>54327</multicast-port>
            </multicast>
        </join>
    </network>
</hazelcast>

File development-imap-config.xml
<map name="activities">
        <in-memory-format>BINARY</in-memory-format>
        <statistics-enabled>true</statistics-enabled>
        <optimize-queries>true</optimize-queries>
</map>

Early in the parsing process the following exception is thrown:

Mai 08, 2018 11:37:56 PM com.hazelcast.config.XmlConfigLocator
INFORMATION: Loading 'hazelcast.xml' from classpath.
Exception in thread "main" com.hazelcast.config.InvalidConfigurationException: cvc-complex-type.2.4.a: invalid content was found starting with element 'group' gefunden. '{"http://www.hazelcast.com/schema/config":import, "http://www.hazelcast.com/schema/config":group, "http://www.hazelcast.com/schema/config":license-key, "http://www.hazelcast.com/schema/config":instance-name, "http://www.hazelcast.com/schema/config":management-center, "http://www.hazelcast.com/schema/config":properties, "http://www.hazelcast.com/schema/config":wan-replication, "http://www.hazelcast.com/schema/config":network, "http://www.hazelcast.com/schema/config":partition-group, "http://www.hazelcast.com/schema/config":executor-service, "http://www.hazelcast.com/schema/config":durable-executor-service, "http://www.hazelcast.com/schema/config":scheduled-executor-service, "http://www.hazelcast.com/schema/config":event-journal, "http://www.hazelcast.com/schema/config":queue, "http://www.hazelcast.com/schema/config":map, "http://www.hazelcast.com/schema/config":multimap, "http://www.hazelcast.com/schema/config":replicatedmap, "http://www.hazelcast.com/schema/config":cache, "http://www.hazelcast.com/schema/config":list, "http://www.hazelcast.com/schema/config":set, "http://www.hazelcast.com/schema/config":topic, "http://www.hazelcast.com/schema/config":reliable-topic, "http://www.hazelcast.com/schema/config":jobtracker, "http://www.hazelcast.com/schema/config":semaphore, "http://www.hazelcast.com/schema/config":lock, "http://www.hazelcast.com/schema/config":ringbuffer, "http://www.hazelcast.com/schema/config":listeners, "http://www.hazelcast.com/schema/config":serialization, "http://www.hazelcast.com/schema/config":native-memory, "http://www.hazelcast.com/schema/config":services, "http://www.hazelcast.com/schema/config":security, "http://www.hazelcast.com/schema/config":member-attributes, "http://www.hazelcast.com/schema/config":quorum, "http://www.hazelcast.com/schema/config":lite-member, "http://www.hazelcast.com/schema/config":hot-restart-persistence, "http://www.hazelcast.com/schema/config":user-code-deployment, "http://www.hazelcast.com/schema/config":cardinality-estimator}' wird erwartet.
    at com.hazelcast.config.AbstractXmlConfigHelper.schemaValidation(AbstractXmlConfigHelper.java:189)
    at com.hazelcast.config.XmlConfigBuilder.parseAndBuildConfig(XmlConfigBuilder.java:235)
    at com.hazelcast.config.XmlConfigBuilder.build(XmlConfigBuilder.java:216)
    at com.hazelcast.config.XmlConfigBuilder.build(XmlConfigBuilder.java:209)
    at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:121)
    at com.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:92)
    at hazelcastPlay.TestHazel.main(TestHazel.java:34)

Does anybody know how to compose my configuration? I would be glad to get some help.

Desiree

Hi Vassilis,

thank you very much for answer.

Your recommendation is perfectly right and I am

able compose my configuration now without any problem.

Regards

Desiree

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/5146487b-be98-481c-984b-52ef47362f7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mesut Celik

unread,
May 14, 2018, 9:24:11 AM5/14/18
to haze...@googlegroups.com
Hi Anup,

Can you give some more info about your deployment?
  • how many members in the cluster?
  • What are rolling update configuration parameters? maxSurge etc.? Can you send the whole config?
  • What is the stacktrace of Client failure?
  • Are you using Hazelcast provided docker images? https://github.com/hazelcast/hazelcast-openshift
  • What is the version of Openshshift? It is Openshift Origin or Openshift Container Platform?
It would be appreciated if you give those details...



To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+unsubscribe@googlegroups.com.

To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.

For more options, visit https://groups.google.com/d/optout.



--

Mesut Celik
Services & Integration Team Lead 
me...@hazelcast.com 
Reply all
Reply to author
Forward
0 new messages