Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW

QRS API: Change Central Node Failover Timeout

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Damien_Villaret
Support
Support

QRS API: Change Central Node Failover Timeout

Last Update:

Dec 8, 2020 10:21:26 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jul 25, 2017 6:32:39 AM

Starting with Qlik Sense June 2017 you can set a RIM node to be a failover candidate for the Central node. That timeout for failover is set automatically to 10 minutes, but you can change that. 

Using the QRS API to do so is the recommended way to accomplish this.

Regarding how to call QRS API using Postman, please refer to QRS API using Xrfkey header in Postman.

1. First use the following command:

GET /qrs/servicecluster/full?xrfkey=LrVKbOV7HAVjFMTF

In Postman, specify the following:

Headers:
x-qlik-xrfkey: LrVKbOV7HAVjFMTF

In order to retrieve the service cluster settings ass pictures in fig 1:

QRS API central node failover.png

You will need the id returned here in order to alter the timeout setting through the /qrs/servicecluster/ endpoint.

In this example, the id is: 2cc76c42-e0a1-4bf6-b818-ed4a10bc6824


2. Send the following API call to alter the timeout:

PUT /qrs/servicecluster/{ID}?xrfkey=LrVKbOV7HAVjFMTF

In Postman, specify the following: 


Headers:
x-qlik-xrfkey: LrVKbOV7HAVjFMTF
Content-type: application/json

Request body

Copy the response retrieved in step 1 and replace the value for the timeout

 "failoverTimeout": 10,

Replace the value with the value desired.

You will also need to remove the "[" and the "]" at the beginning and the end of the body. See fig 2.

Fig 2Fig 2

If the request succeeds, the following response should be returned and from the QMC cluster settings tab you will see that the value has changed (fig 3).

[
    {
        "id": "2cc76c42-e0a1-4bf6-b818-ed4a10bc6824",
        "name": "ServiceCluster",
        "modifiedByUserName": "DOMAIN\\administrator",
        "modifiedDate": "2017-07-25T08:26:14.212Z"
    }
]


Fig 3Fig 3

 

Related Content:

Configuring failover for central node resiliency 
Change Central Node Failover Timeout

Labels (1)
Contributors
Version history
Last update:
‎2020-12-08 10:21 AM
Updated by: