Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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:
I 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