全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 3469|回复: 38

[不限流量] 甲骨文新加坡终于开到ARM了

  [复制链接]
发表于 2021-12-1 09:19:31 | 显示全部楼层 |阅读模式
这个脚本跑了9000多次,平均每次3分钟,运行了快20天,加上之前有几次手动中断了的,差不多24天才抢到一台2x12的

  1. [2021-12-01 04:50:37]start the [9293] time try
  2. {
  3.   "data": {
  4.     "agent-config": {
  5.       "are-all-plugins-disabled": false,
  6.       "is-management-disabled": false,
  7.       "is-monitoring-disabled": false,
  8.       "plugins-config": null
  9.     },
  10.     "availability-config": {
  11.       "is-live-migration-preferred": null,
  12.       "recovery-action": "RESTORE_INSTANCE"
  13.     },
  14.     "availability-domain": "pplh:AP-SINGAPORE-1-AD-1",
  15.     "capacity-reservation-id": null,
复制代码


再附上简单的脚本,官方API,没有被封的风险
  1. for i in `seq 1 10000`; do
  2. echo "[`date '+%Y-%m-%d %H:%M:%S'`]start the [$i] time try"
  3. oci compute instance launch \
  4. --availability-domain pplh:AP-SINGAPORE-1-AD-1 \
  5. --display-name instance-20211109-1023 \
  6. --image-id ocid1.image.oc1.ap-singapore-1.xxxxxx \
  7. --subnet-id ocid1.subnet.oc1.ap-singapore-1.xxxxxx \
  8. --shape VM.Standard.A1.Flex \
  9. --assign-public-ip true \
  10. --metadata '{"ssh_authorized_keys": "xxxxxx"}' \
  11. --shape-config '{"ocpus": 2, "memoryInGbs": 12}' \
  12. --compartment-id ocid1.tenancy.oc1..xxxxxx

  13.   if [ "$?" -ne 0 ]; then
  14.     sleep 60s
  15.   else
  16.     echo "created successfully, exit"
  17.     break
  18.   fi

  19. done
复制代码
 楼主| 发表于 2021-12-1 09:56:56 | 显示全部楼层
yanqing001 发表于 2021-12-1 09:51
楼主说说这脚本咋用!


这儿比较详细http://vpsqk.com/post/1872.html
发表于 2021-12-1 09:20:41 | 显示全部楼层
  恭喜恭喜                                                                                                                                                              ——来自CC的路由器
发表于 2021-12-1 09:21:06 | 显示全部楼层
多谢分享,刚发了帖子就看到大佬分享了
发表于 2021-12-1 09:22:23 | 显示全部楼层
60天还要重开
发表于 2021-12-1 09:26:30 | 显示全部楼层
我想开个日本,一直没开出来
发表于 2021-12-1 09:51:31 | 显示全部楼层
楼主说说这脚本咋用!
发表于 2021-12-1 10:03:01 | 显示全部楼层
还有三十三天就被删鸡的悄咪咪路过
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-9 05:46 , Processed in 0.064294 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表