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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
rubenmarin
MVP
MVP

Node to reload some apps but engine for all

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.

1 Solution

Accepted Solutions
Levi_Turner
Employee
Employee


@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:$false

And to enable the Scheduler:

Update-QlikNode -id $(Get-QlikNode -filter "name eq 'node02'").id -schedulerEnabled:$true

 For the script, adjust node02 to the name of your node:

Levi_Turner_0-1605214606038.png

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). 

View solution in original post

3 Replies
Brett_Bleess
Former Employee
Former Employee

@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-admin/November2020/Subsystems/DeployAdministerQSE/Content/Sense_De...

https://help.qlik.com/en-US/sense-developer/November2020/Content/Sense_Helpsites/Home-developer.htm

Sorry I am not more help man!

Cheers,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
Levi_Turner
Employee
Employee


@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:$false

And to enable the Scheduler:

Update-QlikNode -id $(Get-QlikNode -filter "name eq 'node02'").id -schedulerEnabled:$true

 For the script, adjust node02 to the name of your node:

Levi_Turner_0-1605214606038.png

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
MVP
MVP
Author

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