Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
rohitk1609
Master
Master

How to change central node type manually from Failover Node

Hi Techies,

I have 5 servers in my Qlik site

1. Central node(Master Node)

2. Scheduler Node1(Failover Candidate) and Scheduler Node2(Failover Candidate)

3. Consumer Node1 and Consumer Node2

On one incident, services of Central node(Master Node) have been stopped and Scheduler Node2(Failover Candidate) took the charge then Scheduler Node2 is MASTER type with scheduler as MASTER only and Central node became SLAVE and now my new config is


1. Central node(slave or scheduler node)

2. Scheduler Node1(Failover Candidate) and Scheduler Node2(Master Node)

3. Consumer Node1 and Consumer Node2

I want to make my Central node back to Master type of master node. Can please anyone tell me what is the best way to change a node's node type or make my old central node back to master node ?

Thanks,

Rohit


12 Replies
rohitk1609
Master
Master
Author

Hi Levi,

To follow up this ticket, your suggested powershell script was working fine but suddenly it is showing an error of certificate. 

If I logged in as admin and run it by right click and run in powershell it is working fine but when I open powershell console as admin and go to the working directory by CD command and then rune it as

.\RunToMakeMasterNode 

it is throwing me an error below:

powershell.pngI am not sure because I migrated to Sep 2018 it is started giving me error, Please help me to fix it 

Powershell script file code is below:

 

$hdrs = @{}
$hdrs.Add("X-Qlik-Xrfkey","examplexrfkey123")
$hdrs.Add("X-Qlik-User", "UserDirectory=INTERNAL; UserId=sa_api")
$cert = Get-ChildItem -Path "Cert:\CurrentUser\My" | Where {$_.Subject -like '*QlikClient*'}
$Data = Get-Content C:\ProgramData\Qlik\Sense\Host.cfg
$FQDN = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($($Data)))
$body = ''
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12'
Invoke-RestMethod -Uri "https://$($FQDN):4242/qrs/failover/tonode/54323a-dbdf-4942-9ab8-6a8c0cdd47cc?xrfkey=examplexrfkey123" -Method Post -Body $body -Headers $hdrs

Thanks in advance

Rohit

rohitk1609
Master
Master
Author

Hey Levi,
Can you please help me to fix it.

Thanks,
Rohit
rohitk1609
Master
Master
Author

Hi Levi,

Please add your inputs so I can fix this issue.

Thanks
Rohit