# Scale Spinner By Schedule ```{admonition} Pre-condition * Đã tạo spinner ``` **Các bước thực hiên:** ---------- ### **Bước 1: Truy cập vào Spinner** ```{thumbnail} ../../../_static/img/spinner/how-to/scale-spinner-by-schedule-1.png :width: 65% :alt: Image :align: center ``` ### **Bước 2: Vào chức năng Auto scale by Schedule** ```{thumbnail} ../../../_static/img/spinner/how-to/scale-spinner-by-schedule-2.png :width: 65% :alt: Image :align: center ``` ### **Bước 3: Thêm lịch mới** ```{thumbnail} ../../../_static/img/spinner/how-to/scale-spinner-by-schedule-3.png :width: 65% :alt: Image :align: center ``` Ở đây, người dùng có thể thay đổi default Instances để cài đặt số instance mong muốn spinner trở về sau khi quá trình spinner được scale kết thúc. ### **Bước 4: Thiết lập thông tin chi tiết** Các thông tin cần thiết bao gồm: * Schedules Name: Người dùng đặt * Recurrence: * Specific day: Ngày do người dùng chỉ định, đi kèm với trường Date ```{thumbnail} ../../../_static/img/spinner/how-to/scale-spinner-by-schedule-4.png :width: 65% :alt: Image :align: center ``` * Daily: Hằng ngày ```{thumbnail} ../../../_static/img/spinner/how-to/scale-spinner-by-schedule-5.png :width: 65% :alt: Image :align: center ``` * Weekly: Ngày trong tuần, đi với tùy chọn các ngày trong tuần  ```{thumbnail} ../../../_static/img/spinner/how-to/scale-spinner-by-schedule-6.png :width: 65% :alt: Image :align: center ``` * Monthly: Ngày trong tháng, đi với tùy chọn các ngày trong tháng hoặc thứ trong tuần ở tuần thứ 1 đến tuần thứ 5 ```{thumbnail} ../../../_static/img/spinner/how-to/scale-spinner-by-schedule-7.png :width: 65% :alt: Image :align: center ```
```{thumbnail} ../../../_static/img/spinner/how-to/scale-spinner-by-schedule-8.png :width: 65% :alt: Image :align: center ``` * Thời gian scale: Người dùng được thêm nhiều khung thời gian ```{thumbnail} ../../../_static/img/spinner/how-to/scale-spinner-by-schedule-9.png :width: 65% :alt: Image :align: center ``` * Time Zone: Tùy chọn theo ý muốn ```{thumbnail} ../../../_static/img/spinner/how-to/scale-spinner-by-schedule-10.png :width: 65% :alt: Image :align: center ``` ```{div} sd-fs-5 sd-text-primary Result: ``` Sau khi tạo thành công, lịch trình đã tạo được hiển thị trong danh sách. Khi đến thời điểm scale, trạng thái sẽ chuyển từ Pending sang Running ```{thumbnail} ../../../_static/img/spinner/how-to/scale-spinner-by-schedule-11.png :width: 65% :alt: Image :align: center ```