Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
We have a server we used as consumer node, it has high usage on work hours but very low or none outside this hours, is there any way to configure this node to work also as reload node during some hours?
Another option can be use this node as scheduler node for some apps (that are configured to only reload on non-work hours) but work as engine for some other apps. On other words: Can one app be configured to use one node as engine but not as scheduler.
Thanks.
@rubenmarin wrote:Can one app be configured to use one node as engine but not as scheduler.
No. If an app is available to be opened by users then it's available to be opened by Qlik to do a reload.
The alternative approach would be to come up with a script to toggle the scheduler on and off based on a date threshold.
I generally would use Qlik-Cli-Windows for this purpose. Do review it's Wiki for docs on how to install / connect, etc: https://github.com/ahaydon/Qlik-Cli-Windows/wiki
To disable the scheduler node you can use this command:
Update-QlikNode -id $(Get-QlikNode -filter "name eq 'node02'").id -schedulerEnabled:$falseAnd to enable the Scheduler:
Update-QlikNode -id $(Get-QlikNode -filter "name eq 'node02'").id -schedulerEnabled:$trueFor the script, adjust node02 to the name of your node:
To automate this, you can use a Windows Task for this purpose on the Qlik Server (example: https://github.com/levi-turner/1400da7e-fbda-4a02-aa84-a63209c2aa02#config-steps-for-script).
@rubenmarin Hey man, sorry if you have already checked the Help, but here is link to where I think you need to check on this one. Unfortunately I am not as good at Sense as I am View, so I am not sure on this one. If it is not baked in, there may be a means to do it via the APIs in that case potentially, but I am not sure how dicey it might be changing things on the fly etc. @Levi_Turner flagging Levi, as I am hoping he may have a better answer than I do on this one if the links are not helpful.
https://help.qlik.com/en-US/sense-developer/November2020/Content/Sense_Helpsites/Home-developer.htm
Sorry I am not more help man!
Cheers,
Brett
@rubenmarin wrote:Can one app be configured to use one node as engine but not as scheduler.
No. If an app is available to be opened by users then it's available to be opened by Qlik to do a reload.
The alternative approach would be to come up with a script to toggle the scheduler on and off based on a date threshold.
I generally would use Qlik-Cli-Windows for this purpose. Do review it's Wiki for docs on how to install / connect, etc: https://github.com/ahaydon/Qlik-Cli-Windows/wiki
To disable the scheduler node you can use this command:
Update-QlikNode -id $(Get-QlikNode -filter "name eq 'node02'").id -schedulerEnabled:$falseAnd to enable the Scheduler:
Update-QlikNode -id $(Get-QlikNode -filter "name eq 'node02'").id -schedulerEnabled:$trueFor the script, adjust node02 to the name of your node:
To automate this, you can use a Windows Task for this purpose on the Qlik Server (example: https://github.com/levi-turner/1400da7e-fbda-4a02-aa84-a63209c2aa02#config-steps-for-script).
Thanks @Levi_Turner, @Brett_Bleess, this can work, maybe this particular customer doesn't feels comfortable with that solution but it's a solution at least.
I didn't commented before to not complicate the question but in this case the 'only engine' node is the central node so instead of disabling the scheduler I think the solution can be switching from Master to MasterAndSlave, thanks to the links provided by Levi I see there is and option to make this change. It seems it will be:
Update-QlikScheduler -id $(Get-QlikNode -filter "name eq 'NodeName'").id --schedulerServiceType:$MasterAndSlave