zoukankan      html  css  js  c++  java
  • 46) ECS弹性伸缩和GRE隧道 [ECS3]

    1 弹性伸缩

    1.1. 介绍

    自动调整弹性技术资源的大小,以满足业务需求的变化

    1.2- 优势

    实现自动化资源调配。

    1.3- 实现模式

    • 定时模式: 自定义自动伸缩时间和频率。---> 使用定时任务
    • 动态模式: 基于云监控性能指标,自动增加或者减少实例 --> 使用报警任务

    2- GRE隧道

    2.1- 介绍

    GRE(Generic Routing Encapsulation,通用路由封装)协议,把两个不同vpc网络通过建立一条虚拟隧道的方式连接在一起。

    2.2- 实现原理

    2.3- 发包原理

    2.5- 案例

    2.5.1- 场景需求

    2.5.2- 实现步骤

    1. 配置VPC和ECS
    2. 打通GRE隧道
    3. 验证

    2.5.3- 操作

    主机C命令:

    modprobe  ip_gre #安装gre模块 
    ip tunnel add tun1 mode gre remote 39.104.109.250(远端公网地址) local #增加隧道172.16.0.2(本机内网ip)
    ip link set tun1 up #激活隧道
    ip add 192.168.1.2(本地隧道地址)  peer 192.168.1.1(远端隧道地址) dev tun1 #配置隧道地址
    ip route add 172.31.0.0/24(远端vpc地址) #配置路由
  • 相关阅读:
    leetcode 78. 子集 JAVA
    leetcode 91. 解码方法 JAVA
    leetcode 75. 颜色分类 JAVA
    leetcode 74 搜索二维矩阵 java
    leetcode 84. 柱状图中最大的矩形 JAVA
    last occurance
    first occurance
    classical binary search
    LC.234.Palindrome Linked List
    LC.142. Linked List Cycle II
  • 原文地址:https://www.cnblogs.com/lemanlai/p/12489825.html
Copyright © 2011-2022 走看看