是否有关于VMSS Azure计划扩展的指南

时间:2016-12-26 17:16:32

标签: azure scheduled-tasks azure-vm-scale-set runbook

我有一些问题。 是否可以使用指定的时间表设置vmss(虚拟机比例集)缩放?如果是,请给我解决方案指南的路径。谢谢!

1 个答案:

答案 0 :(得分:1)

是的,请看一下这个article,基本上您需要做的是创建一个带有一些计划的比例集,进入Azure Resource Explorer并根据您的需要进行修改:

darko@darko-Lenovo-G570 ~ $ ps aux | grep postgres
postgre+  1332  0.0  0.3  53304  6800 ?        S    07:59   0:00 /usr/bin/postgres --datanode -D /var/lib/postgres-xc/DN1
postgre+  1363  0.0  0.3  53304  6808 ?        S    07:59   0:00 /usr/bin/postgres --datanode -D /var/lib/postgres-xc/DN2
postgre+  1372  0.0  0.0  53304  1224 ?        Ss   07:59   0:00 postgres: checkpointer process                          
postgre+  1373  0.0  0.0  53304  1456 ?        Ss   07:59   0:00 postgres: writer process                                
postgre+  1374  0.0  0.0  53304  1224 ?        Ss   07:59   0:00 postgres: wal writer process                            
postgre+  1375  0.0  0.1  53724  2220 ?        Ss   07:59   0:00 postgres: autovacuum launcher process                   
postgre+  1376  0.0  0.0  23256  1256 ?        Ss   07:59   0:00 postgres: stats collector process                       
postgre+  1419  0.0  0.0  53304  1232 ?        Ss   07:59   0:00 postgres: checkpointer process                          
postgre+  1420  0.0  0.0  53304  1464 ?        Ss   07:59   0:00 postgres: writer process                                
postgre+  1421  0.0  0.0  53304  1232 ?        Ss   07:59   0:00 postgres: wal writer process                            
postgre+  1423  0.0  0.1  53724  2228 ?        Ss   07:59   0:00 postgres: autovacuum launcher process                   
postgre+  1424  0.0  0.0  23256  1264 ?        Ss   07:59   0:00 postgres: stats collector process                       
postgre+  1440  0.0  0.3  53304  6856 ?        S    07:59   0:00 /usr/bin/postgres --coordinator -D /var/lib/postgres-xc/CN
postgre+  1451  0.0  0.0  53304  1224 ?        Ss   07:59   0:00 postgres: pooler process                                  
postgre+  1453  0.0  0.0  53304  1712 ?        Ss   07:59   0:00 postgres: checkpointer process                            
postgre+  1454  0.0  0.0  53304  1464 ?        Ss   07:59   0:00 postgres: writer process                                  
postgre+  1455  0.0  0.0  53304  1456 ?        Ss   07:59   0:00 postgres: wal writer process                              
postgre+  1456  0.0  0.5  63548 11736 ?        Ss   07:59   0:00 postgres: autovacuum launcher process                     
postgre+  1457  0.0  0.0  23256  1264 ?        Ss   07:59   0:00 postgres: stats collector process                         
postgre+  1481  0.0  0.1  16412  2716 ?        S    07:59   0:00 /usr/bin/gtm -D /var/lib/postgres-xc/GTM -l /var/log/postgres-xc/datanode.log
darko     8426  0.0  0.0   5908   856 pts/0    S+   18:34   0:00 grep --colour=auto postgres
darko@darko-Lenovo-G570 ~ $ sudo -u postgres -i
[sudo] password for darko: 
postgres@darko-Lenovo-G570 ~ $ createuser darko
createuser: could not connect to database postgres: FATAL:  role "postgres" does not exist