Hi Dushantha,

Yes. If you are using port offset to deploy the Gateway and KeyManager
nodes, then the default Thrift port (10397) in both the nodes will get
offset by the specified offset value.
Eg:
Gateway offset = 2,
Then <ThriftClientPort> will be 10399

KeyManager offset = 3,
Then <ThriftServerPort> will be 10400

In a clustered deployment, the KeyManager acts as the Thrift Server and the
Gateway as the Thrift client. Hence the Gateway uses the <ThriftClientPort>
to send a request to the KeyManager where the request is handled at the
<ThriftServerPort>. For the communication to happen, both the port values
(ThriftServerPort in KeyManager and ThriftClientPort in Gateway) should be
of the same value. Unless the port offset of both the Gateway and the
KeyManager is the same, you will have to manually set the two values.

Thanks,
Viduranga.

On Thu, Nov 23, 2017 at 9:24 PM, Chamara Silva <[email protected]> wrote:

> This already in the public documentation. Please refer "Changing the
> Thrift client and server ports" section.
>
>
> [2] https://docs.wso2.com/display/AM210/Changing+the+
> Default+Ports+with+Offset
>
> Thanks,
> Chamara Silva
>
> On Thu, Nov 23, 2017 at 7:57 PM, Dushantha Batuwita <[email protected]>
> wrote:
>
>> Hi
>> I'm involved in a gateway cluster set up in the local machine where the
>> architecture is explained as follows
>>
>>    1. IS 5.3.0 as KM         offset 0
>>    2. Publisher/store/TM  offset 1
>>    3. Gateway worker       offset 3
>>    4. GatewayWorkerManger  offset 2
>>
>> I'm following the [1] Clustering API Manager document where it explains
>> Configuring the Gateway > Configure key management related communication.
>> >  c.  Specify the ThriftClientPort and ThriftServerPort values. 10397 is
>> the default.
>> <ThriftClientPort>10397</ThriftClientPort>
>> <ThriftServerPort>10397</ThriftServerPort>
>> My query is should this port values be incremented according to the given
>> offset values
>>
>>
>> [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+API+
>> Manager+2.0.0#b099f11ea91344af8835595ac455a7c1
>>
>>
>> many thanks
>> --
>> *Dushantha Nayanajith Chandima Batuwita*
>> Software Engineer Support | WSO2
>> [email protected]
>> mobile : 0094777453010 <077%20745%203010>
>>
>
>
>
> --
> Suminda Chamara Silva
> Technical Lead
> WSO2 Inc.
> Mobile: +94718302858 <+94%2071%20830%202858>
> blog: http://chamaras.blogspot.com
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,

*Viduranga Gunarathne*

*Software Engineer Intern*


*WSO2*
Email : [email protected]
Mobile : +94712437484
Web : http://wso2.com
[image: https://wso2.com/signature] <https://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to