Creating schedule-based scaling
Applies to: Kyvos Enterprise Kyvos Cloud (SaaS on AWS) Kyvos AWS Marketplace
Kyvos Azure Marketplace  Kyvos GCP Marketplace Kyvos Single Node Installation (Kyvos SNI)
Scheduling
To configure cluster scaling for a specific duration based on expected usage, use the schedule-based scaling option. This allows you to specify the duration at which the cluster runs and at what capacity.
You can view and set schedules for the Kyvos cluster and query engine capacity.Â
To efficiently utilize the cluster, you can create a schedule to: Â
Increase or decrease query engine capacity for any time interval.
Configure the days for weekdays or weekends.
Change the time format to 12 or 24 hours.
Set the cluster status as online and define the query engine capacity, or you can shut down the cluster by selecting the offline mode.Â
Change the Query Engine cluster stateÂ
Note
From Kyvos 2024.9 onwards, if you use Query Engines as a compute server:
For schedule-based scaling, Query Engines will not automatically start to process semantic model. In this case, Kyvos recommends switching to the load-based scaling.
You can view on-screen notifications that provide you with timely information about the state of the cluster.Â
When you specify a schedule, ensure the following:
If you modify the start time or the cluster capacity of the running schedule, the changes apply from the next schedule cycle.
If you modify the start time, end time, or capacity of the running schedule, the changes will be applicable from the next schedule.Â
If you modify the start time or the end time or change the cluster capacity of the past schedule, the changes apply from the next schedule cycle.
Cluster Scaling page to set schedule-based scaling
To set a cluster schedule, perform the following steps.
From the Toolbox, click Setup > Cluster Scaling. The Cluster Scaling page is displayed.
On this page, you can also do the following:
Schedule: Choose this option to create schedule-based scaling.Â
View the cluster event legends as follows:
Click the following buttons:
Actions menu: Click the Actions menu (...) to do the following:
Creating the default schedule settings of the cluster
Subscribing to receive notifications for cluster events.Â
Viewing audit logs for cluster events.Â
Add Schedule: To create a cluster schedule
Revert: To revert your changes
Save: To save your changes
The Cluster Current State information is displayed with the selected capacity. It also displays the number of Query Engines and BI Servers in use for the current schedule.Â
Change Cluster state: Use this option to change the cluster state.Â
Show/Hide details: Use this option to show or hide the BI Server and query engine state.Â
View the cluster schedule entries you have set for weekdays or weekends with specified times and cluster capacity.
A red bar in the schedule box indicates the current time of the Kyvos system.
View the current schedule time with the selected cluster capacity.Â
View the type of Query Engine cluster capacity you can set.
Creating default cluster settings
You can specify the default settings for the query engine cluster as per your requirements. The query engine cluster runs with the selected capacity for the selected duration.Â
Note
Once forceful scaling is complete, the cluster returns to its previous state. In other words, i f the Change Cluster State schedule ends in the middle of the user-defined schedule, the query engines will run at the capacity set by the user.Â
If you change the default query engine cluster capacity, it is implemented from the next default schedule.Â
The cluster running with the default settings is always in the online state.
The cluster will not run with the default capacity if the difference between the end time of the current schedule and the upcoming schedule is 30 minutes or less.
If the difference between the end time of the current schedule and the upcoming schedule is more than 30 minutes, then the cluster will run using the default settings.
On the Cluster Scaling page, you can view what times the cluster is running and at which capacity.
To set the default settings, perform the following steps.Â
Click the Actions menu (⋮) in the upper right corner of a cluster scaling page, and then click Settings.
The Settings dialog box is displayed.Â
From here, you can:Â
Set the days for weekends and weekdays. For example, you may want to include Saturday in Weekday and define only Sunday as the weekend.
Change the time format to 12 or 24 hours.
Set the default capacity at which the query engines would run when no schedule is applied.Â
If you have made changes, click Save. The schedule entry is displayed in the schedule box.Â
Adding a scheduleÂ
You can create an explicit schedule based on your cluster requirements.Â
To add a new schedule, perform the following steps.Â
From the Toolbox, click Setup, and then Cluster Scaling.
Add a schedule by using one of the following methods:
Right-click a time in the schedule and click Add Schedule.
Click Add Schedule at the top right of the page.
To create a schedule, point the mouse pointer to the starting time and drag the mouse pointer to the end time.
The Add Schedule dialog box is displayed
Every cluster capacity option is associated with a title. The associated title is displayed in the Title box when you select a required capacity option.
For example, if you choose the capacity option as Full, the title associated with the Full cluster capacity option is displayed in the Title box. You can use the default title or change the title for that schedule as needed.ÂSelect which days the event occurs and specify the time.
Select whether the service should remain online or offline.
For example, you may want the service to be offline on the weekends at certain times.Click to select a query engine capacity.Â
Click Add.
The Schedule entry is displayed in the schedule. Â
Editing a scheduleÂ
To edit an existing schedule, perform the following steps.Â
From the Toolbox, click Setup, and then click Cluster Scaling.
Right-click a schedule entry in the schedule, and then click Edit. Â
Make changes as needed and click Save.
A message is displayed when users try to sign in before a cluster goes down according to its schedule. If they are currently using the system, they will see a message that the server is scheduled to be down in 10 minutes, and after that, no requests will be served. Users are prompted to wait and retry the request later when the cluster is down.Â
Changing cluster stateÂ
You can create a schedule to change the Query Engine state at any point in time by setting the Query Engine capacity for a specific date and time. This change comes into effect immediately and overrides any existing schedules or rules.Â
When you change the cluster state, ensure the following:Â
If the 'Change cluster schedule' task is completed and no schedule is defined, the cluster will run using the default cluster settings.Â
If an upcoming schedule has been defined and its start time is less than 30 minutes away, the 'Change Cluster Schedule' task will be extended until it reaches the start time of the upcoming schedule.
If the difference between the end time of the current schedule and the upcoming schedule is more than 30 minutes, then the cluster will run using the default settings.
Note
When you change the cluster state, the system enters a transition phase from one schedule to another. During this phase, you cannot modify the Query Engine capacity.
Once the transition phase is complete, you can change the Query Engine cluster capacity as needed.Â
To change the cluster state, perform the following steps.Â
Click the Change Cluster State link available in the Cluster Current State section.Â
The Change Cluster State dialog is displayed.ÂEvery cluster capacity option is associated with a title. The associated title is displayed in the Title box when you select a required capacity option.
For example, if you choose the capacity option as Full, the title associated with the Full cluster capacity option is displayed in the Title box. You can use the default title or change the title for that schedule as needed.ÂSelect the date and time when you want to change the cluster state.Â
Select whether the service should remain online or offline.
Click to select a query engine capacity.Â
Click Change Now.
The Schedule entry is displayed in the schedule. Â
Subscribe to notifications
Click the Actions menu (...) located in the upper right corner of a cluster scaling page, and then click Subscribe Cluster Events to subscribe to receive notifications for cluster events, such as when the cluster shuts down as per schedule, entity modifications, or license expiring soon.
You can set up notifications and subscriptions as needed.
View cluster audit logs
Click the Actions menu (...) located in the upper right corner of a cluster scaling page, and then click View Audit Logs  to view audit logs for cluster scaling events. This opens the Monitor page and displays all the events that have occurred on your cluster, along with the details. You can view details about default and user-created schedules and download logs of any cluster scaling event.Â
Copyright Kyvos, Inc. All rights reserved.