---
description: Managing Power Status of Cloud Resources in projects
---

# Power Scheduler

## Overall

In Power Scheduler page, User can schedule power status of target cloud resources.&#x20;

Power Scheduler page offers listing scheduler information, add/update/delete scheduler.

## Prerequisites

User need to define security policy(IAM) before setup power scheduler.&#x20;

Before creating Power Scheduler modify your existing policy, For detailed process refer to link below.

{% content-ref url="../identity/service-account/service-account-policy-management" %}
[service-account-policy-management](../identity/service-account/service-account-policy-management)
{% endcontent-ref %}

{% content-ref url="../identity/service-account/google-cloud-service-account-policy-management" %}
[google-cloud-service-account-policy-management](../identity/service-account/google-cloud-service-account-policy-management)
{% endcontent-ref %}



## Power Scheduler Dashboard

![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MUBdcHz68o_2D4fSQuZ%2F-MUBnI9OpLnObPi4I8XL%2Fimage.png?alt=media\&token=c46ad78a-639f-4f88-8320-28dfe594c846)

**Scheduler list by Projects**

User can see Overall status of power scheduling&#x20;

**Search Bar**

User can search status of power scheduling by project name.

**Scheduling Widget**

Items of power scheduler information for each projects are below.

![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MUBdcHz68o_2D4fSQuZ%2F-MUBoi_P5KCOnuOv-4PF%2Fimage.png?alt=media\&token=aad2fb3d-20fd-40a9-b842-bb1ef50713e8)

| Item                   | Description                                                                                                                                                                                                                                   |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Project Name           | Name of projects which is linked to power scheduler                                                                                                                                                                                           |
| Number of Resource     | <ul><li>Number of resources  : Number of resources that are controlled by power scheduler.</li><li>Number of resources available : Total number of resources can be scheduled by power scheduler (Server, RDS, Auto Scaling Group).</li></ul> |
| Schedule               | List of running schedule(Up to 3 items)                                                                                                                                                                                                       |
| Estimated Reduced Cost | Reduced cost by power scheduler in last 1 months(US dollar).                                                                                                                                                                                  |
| Scheduled Job          | Length of each schedule                                                                                                                                                                                                                       |

> **Scheduling Meat Map**
>
> The color of scheduling head map has 2 steps. The color shows how long is scheduled job. Each color means below

> ![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MKYGKwDbnZyB6oFdUTh%2F-MKYQ8mqaq_nVnHQPCjU%2Fimage.png?alt=media\&token=f129ae08-1d23-428a-aef9-c5749739390f)Scheduled time is between 0 \~ 12 hours

> ![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MKYGKwDbnZyB6oFdUTh%2F-MKYP_ZAnO_MZNqtWPh7%2Fimage.png?alt=media\&token=74359aaf-cb12-4aad-b562-4bfd339c542c)Scheduled time is between 12\~24 hours

## Scheduler Management

### Scheduler Calendar

In scheduler Calendar, User can manage this functions



#### Scheduling Time

![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MUBdcHz68o_2D4fSQuZ%2F-MUBp_cbWWQ29QNUDbbI%2Fimage.png?alt=media\&token=f91f2af3-08da-435a-b6e2-8c1d9f22e868)

User can see scheduler timetable. x-axis is date, y-axis is time to be controlled. By clicking _**This weeks**_ jump to power scheduling plan for this weeks.

Move to next/previous weeks by  `< >` buttons right upper side of table.



#### Resource Group

**• Priority by Resource Group**

![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MUBdcHz68o_2D4fSQuZ%2F-MUBrJopBzSafU5F97KH%2Fimage.png?alt=media\&token=8fd7b510-ab1c-42ed-8e9f-f05204797a16)

Scheduler is consist of several resource group. Each resource group has step defined by priority.

The lower number gets higher priority. The status change of higher priority finishes first. If the target status is _**ON**_, higher priority _**Resource Group**_ start first.&#x20;

Create/Deleting _**Resource Group**_ is done by clicking _**Edit button > + Add Group**_. &#x20;

**Resource Groups In Same Priority**

![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MUBrpy0_v8HL6701sC2%2F-MUBs0m2RQq0FakP_Z4h%2F11-power-scheduler-resource-group-01.png?alt=media\&token=c69a7b95-9f81-43c0-8a92-153bd4f263ec)

There is sequence of changing status between resource groups in same priority.

Upper position resource group changes first, and Lower position goes second.



_**Details of Resource Group**_

![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MUBrpy0_v8HL6701sC2%2F-MUBs8Qde4aDUXqrzgdD%2F11-power-scheduler-resource-group-wizard.png?alt=media\&token=57729dde-a95f-49fb-b76a-f6a354117d99)

Detailed status resource group is done by clicking _**Name of Resource Group.**_

| Item          | Description                                        |
| ------------- | -------------------------------------------------- |
| Name          | Name of Resource Group                             |
| Resource Type | Type of Resource Group(Instance, RDS, Autoscaling) |
| Target List   | List of Cloud Resources to be controlled           |

###

### Creating New Scheduler

![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MUBrpy0_v8HL6701sC2%2F-MUBu2taXaabbFDsjp-8%2Fimage.png?alt=media\&token=ed405950-4c89-43b3-9709-a8bbfba5eb18)

By Clicking _**Creating New Scheduler**_ button, New scheduler editing screen appears.&#x20;

If there is no existed scheduler, Creation screen is auto generated.

To create schedule, fill out several items required.



#### Name

Name of Schedule.&#x20;

Combination of String, Number, '-' is valid. escape character is not available.&#x20;

#### Timestamp

Specifying time for scheduler, x-axis is date, y-axis is detailed time.   &#x20;

Selecting range of times done by click & drag in calendar.

Schedule has two mode.

| Scheduled mode    | State | Description                                                                                                    | color                                                                                                                                                                                                                                                        |
| ----------------- | ----- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Repeated Schedule |       | Repeated by every weeks. Within selected area, Resources are On, Otherwise(Non selected) resources became Off. | <img src="https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MKJQQtgbIdClB1tTRbi%2F-MKJR8pusDIqxxXl4Msf%2Fimage.png?alt=media&#x26;token=f32e4896-2223-4fff-a589-4a3381c5dfcc" alt="" data-size="line"> |
| One time          | ON    | Event time for specific date. At the selected area, resources became on.                                       | <img src="https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MKJQQtgbIdClB1tTRbi%2F-MKJQhxHVtpeRZUnMg6G%2Fimage.png?alt=media&#x26;token=6804c1d2-7c7d-42e4-a4f9-de4ff7e77779" alt="" data-size="line"> |
| One time          | OFF   | Event time for specific date. At the selected area, resources became off.                                      | <img src="https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MKJQQtgbIdClB1tTRbi%2F-MKJQsxcOoInCNPbMv0o%2Fimage.png?alt=media&#x26;token=0c637bd4-ea33-4f99-9728-bdd326a83c17" alt="" data-size="line"> |



#### Resource Group

Creating resource groups to control.

By _**Creating Resource Group**_ button, _**Creating Resource Group Page**_ Pops up.

Informations to be specified are belows

| Item           | Description                                                                                                                                                                                                                                        |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name           | <p>Enter <em><strong>Resource Group</strong></em> name. </p><p>Total 128 character is available. </p><p>Name should start with character(not number).</p><p>Name can be a combination of charcter, number, '-' </p>                                |
| Resource Type  | <p>Select resource type. Available list of resource group is belows. </p><ul><li>[AWS] EC2</li><li>[AWS] RDS</li><li>[AWS] Auto Scaling Group</li><li>[Google] Compute Engine</li><li>[Google] Instance Group</li><li>[Google] Cloud SQL</li></ul> |
| Resource List  | Target Cloud Resources to be controlled. Selected by search filter.                                                                                                                                                                                |

Confirm the input information, then click _**save**_ button.

### Schedule Deletion

![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MUBu9BnXlWCXewWPP0h%2F-MUBwAA0Z-Mdh3DwH9F7%2Fimage.png?alt=media\&token=7b44751f-bba2-4f2d-93ef-281d76da9117)

By clicking _**Trash Can**_ button, Scheduler can be deleted.

### Scheduler Edit

![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MUBu9BnXlWCXewWPP0h%2F-MUBxYihIMGI37Xm9YjO%2Fimage.png?alt=media\&token=776639b6-eae9-4d55-9175-eb30c7371ae7)

| item               | Description                                                                                                        |
| ------------------ | ------------------------------------------------------------------------------------------------------------------ |
| Scheduler Name     | By Clicking _**Scheduler Edit**_ button right upper of page. Scheduler name can be edited.                         |
| Scheduler Calendar | <p>By clicking Edit button in calendar. One time schedule, Repeated time scheduled can be edited.</p><p></p>       |
| Resource Group     | <p><em><strong>Resource Group</strong></em> can be edited <em><strong>edit</strong></em> button below. </p><p></p> |



## Limitation & Restrictions

Some limitations for power scheduler service are existed, Most of them are inherited from functionality of each cloud providers.

### AWS

Cloud resources which has conditions below can not managed by power scheduler service

* AutoScalingGroup
  * ASG controlled by _**EKS managed group**_
* RDS Instance
  * Instance that member of _**replication**_
  * SQL Server DB using _**Multi-AZ**_
* RDS Aurora Instance
  * Member of _**Aurora global database**_
  * Cluster that using _**parallel query feature**_
* Reference
  * [AWS DB instance limitation](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_StopInstance.html#USER_StopInstance.Limitations)

### Google Cloud

Cloud resources has a such a condition that does not support within power scheduler Service&#x20;

* Compute Engine
  * Compute Engine resources may **NOT** turn on/off if selected compute engines are instance of **Instance group**.
  * Categorizing **Instance group**'s compute engine and normal compute engine on the view will be available soon. &#x20;
*   Instance Group

    * Only **Stateless** type in Instance Group is valid to turn on/off in power scheduler service because Google Cloud supports autoscaling on **Stateless** type only in Instance Group.  (Refer to[ google.compute.instance\_group](https://cloud.google.com/compute/docs/instance-groups))
    * Minimum number of Instance in Instance group is 1 when instance group scales in(autoscaling) except certain type (Unmanaged Instance Group).&#x20;



{% hint style="info" %}
**Please, be advised that "Instance Group" is working for action Start/Stop as followings**:

* **Valid type:**&#x20;
  * **Stateless** (**Managed**) as mentioned above.
* **Results on Action:**&#x20;
  *
    * Recommend size is given by Google Cloud from their own statistic
  * **ON :** Scale up to recommend size(count) of Instance group and autoscaling mode is on (Keep scale in/out itself by recommend size if autoscaling mode is on).&#x20;
  * **OFF :** No matter autoscaling mode is on or off, diminish Instance Group to 1 Instance and autoscaling mode is off.
{% endhint %}

* Action Cycle & status &#x20;

![](https://402810733-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBJTlSpVTrcscLp2gb%2F-MZD-7Rgly09rgwfy5vI%2F-MZD28Z--E2xV7QpKWeH%2FScreen%20Shot%202021-04-26%20at%2020.59.27.png?alt=media\&token=2cb44fbb-48d8-4f55-872b-e432c39c5808)

