Hi Vasanthan,

You have to configure the "host" to pod's IP as follow,

deployment.config:
  type: ha
  eventSyncServer:
    host: ${NODE_IP}

here the "NODE_IP" is an environment variable and you can define it in the
Kubernetes deployment yaml as the pod's IP. Otherwise, the active node and
the passive node cannot identify each other's IP. Please find a similar
configuration here[1].

[1]
https://github.com/ThilinaManamgoda/kubernetes-is/blob/8d627f905de2f8ff94cd25ea330da6c668f4dd10/is-with-analytics/confs/is-analytics-1/conf/worker/deployment.yaml#L572

Thanks,
Thilina.

On Fri, Sep 21, 2018 at 7:38 PM Damith Wickramasinghe <[email protected]>
wrote:

> Hi vasanthan,
>
> It seems active node cannot create a tcp connection to passive node.
> Please make sure above advertisedHost value should be the host of own node.
> Not the host of other node.  If they are correct then try to telnet to
> passive node {passive node host} 9893 from active node.  I think you may
> need a host mapping too.
>
> Adding thilina since he did a same setup with new HA.
>
>
> Regards,
> Damith.
>
> On Fri, Sep 21, 2018 at 1:35 PM Vasanthan Sivalingam <[email protected]>
> wrote:
>
>>
>> Hi Sp team,
>>
>> With the latest 4.3.0 release an HA deployment was done with kubernetes.
>> the deployment configurations has been done as [1] and [2]. It was noticed
>> that the active node is not communicating with the passive node with the
>> following logs.
>>
>> ...............................
>> [2018-09-21 11:54:32,435]  INFO
>> {org.wso2.carbon.stream.processor.core.internal.StreamProcessorService} -
>> Setting SinksHandlers of TestSiddhiApp to Active
>> [2018-09-21 11:54:32,436]  INFO
>> {org.wso2.carbon.stream.processor.core.internal.StreamProcessorService} -
>> Setting RecordTableHandlers of TestSiddhiApp to Active
>> [2018-09-21 11:54:32,436]  INFO
>> {org.wso2.carbon.stream.processor.core.internal.StreamProcessorService} -
>> Siddhi App TestSiddhiApp deployed successfully
>> [2018-09-21 11:54:32,446]  INFO
>> {org.wso2.carbon.kernel.internal.CarbonStartupHandler} - WSO2 Stream
>> Processor started in 6.922 sec
>> [*2018-09-21 11:54:33,377] ERROR
>> {org.wso2.carbon.stream.processor.core.persistence.PersistenceManager} -
>> Error in getting a connection to the Passive node. null*
>> [2018-09-21 11:54:33,379] DEBUG
>> {org.wso2.carbon.stream.processor.core.ha.HACoordinationSourceHandler} -
>> Active Node: Saving state of Source Handler with Id TestSiddhiApp-1 with
>> timestamp 0
>> [2018-09-21 11:54:33,395] ERROR
>> {org.wso2.carbon.stream.processor.core.persistence.PersistenceManager} -
>> Error in getting the TCP connection to the passive node. Hence not sending
>> the control message to the passive node
>> [2018-09-21 11:55:31,531]  INFO
>> {org.wso2.carbon.stream.processor.core.persistence.PersistenceManager} -
>> siddhi Apps are persisted successfully.
>> ...................................
>>
>> The deployment config was done as below,
>>
>> deployment.config:
>>   type: ha
>>   eventSyncServer:
>>     host: localhost
>>     port: 9893
>>     advertisedHost: sp-ha-node-1
>>     advertisedPort: 9893
>>     bossThreads: 10
>>     workerThreads: 10
>>   eventSyncClientPool:
>>     maxActive: 10
>>     maxTotal: 10
>>     maxIdle: 10
>>     maxWait: 60000
>>     minEvictableIdleTimeMillis: 120000
>>
>> Attached the log file.
>> Can you please suggest a method to make this communication work between
>> active node and the passive node.
>>
>> [1]
>> https://github.com/sameerawickramasekara/product-sp/blob/master/modules/integration/tests-kubernetes-integration/src/test/resources/artifacts/docker-files/deployment-ha-node-1.yaml
>> [2]
>> https://github.com/sameerawickramasekara/product-sp/blob/master/modules/integration/tests-kubernetes-integration/src/test/resources/artifacts/docker-files/deployment-ha-node-2.yaml
>>
>> Thanks,
>> Vasanth
>>
>
>
> --
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> lean.enterprise.middleware
>
> mobile: *+94728671315*
>
>

-- 
Regards,
*Thilina Manamgoda*
*Software Engineer*


*WSO2*
*Mobile : +94 770-445855 <+94%2077%20767%201807>*

[image: http://wso2.com/signature] <http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to