<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      wso2~分布式集群部署總結

      集群模式需要有關注這塊,如果是all-in-one模式,你部署多個節點,這不叫集群模式,它會有多種狀態信息不一致,會有多種問題,如果希望將網關tw,平臺acp(admin,consumer,publisher),密鑰管理km,限流管理tm分開部署多份,需要使用Distributed Deployment 模式(https://apim.docs.wso2.com/en/latest/install-and-setup/setup/kubernetes-deployment/kubernetes/am-pattern-3-acp-tm-gw/)。

      helm-distribute分布式部署

      1. 部署順序

      1. control-plane
      2. gateway
      3. traffic-manager
      4. key-manager[未在私有倉庫找到景象,目前它集成到control-plane里]

      2. 各子服務Dockerfile添加jdbc

      FROM wso2/wso2am-tm:4.5.0
      
      ARG USER=wso2carbon
      ARG USER_HOME=/home/${USER}
      ARG WSO2_SERVER_NAME=wso2am-tm
      ARG WSO2_SERVER_VERSION=4.5.0
      ARG WSO2_SERVER=${WSO2_SERVER_NAME}-${WSO2_SERVER_VERSION}
      ARG WSO2_SERVER_HOME=${USER_HOME}/${WSO2_SERVER}
      
      # Copy JDBC MySQL driver
      ADD --chown=wso2carbon:wso2 https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.28/mysql-connector-java-8.0.28.jar ${WSO2_SERVER_HOME}/repository/components/lib
      
      

      3. gateway中values.yaml中配置acp的服務名和實例名

      wso2:
       apim:
         configurations
            throttling:
              # -- Traffic manager loadbalancer service url for throttling.
              # If the traffic manager is separated from control-plane, all urls should be pointed to traffic-manager ones.
              serviceUrl: "wso2am-acp-service" # 對應control-plane的主服務名
            eventhub:
              # -- Event hub (control plane) enabled.
              # This should be enabled if the traffic manager is separated from the control-plane.
              enabled: false
              # -- Event hub (control plane) loadbalancer service url
              serviceUrl: "wso2am-acp-service"
      

      4. 各服務的deployment.yaml文件添加本地時區變量

      • control-plane\templates\control-plane\instance-1\wso2am-cp-deployment.yaml
      • control-plane\templates\control-plane\instance-2\wso2am-cp-deployment.yaml
      • gateway\templates\gateway\wso2am-gateway-deployment.yaml
      • traffic-manager\templates\traffic-manager\instance-1\wso2am-tm-deployment.yaml
      • traffic-manager\templates\traffic-manager\instance-2\wso2am-tm-deployment.yaml
      spec:
        template:
          spec:
            containers:
            - name: wso2am-traffic-manager
              image: {{ .Values.wso2.deployment.image.registry }}/{{ .Values.wso2.deployment.image.repository }}@{{ .Values.wso2.deployment.image.digest }}
              imagePullPolicy: {{ .Values.wso2.deployment.imagePullPolicy }}
              env:
              - name: PROFILE_NAME
                value: traffic-manager
              - name: NODE_IP
                valueFrom:
                  fieldRef:
                    apiVersion: v1
                    fieldPath: status.podIP
              - name: JVM_MEM_OPTS
                value: "-Xms{{ .Values.wso2.deployment.resources.jvm.memory.xms }} -Xmx{{ .Values.wso2.deployment.resources.jvm.memory.xmx }}"
              - name: TZ
                value: Asia/Shanghai
      

      5. 多節點集群

      1. cp(control-plane) 支持多副本,多個deployment
      2. gateway 無狀態,直接使用deployment多副本功能
      3. traffic-manager 支持多副本,多個deployment

      redis throttle相關【需再調研】

      相關動態

      Update 02/07/2025

      • Until now, Redis was only tested in an all-in-one deployment. Since the actual requirement is to support a multi-Traffic Manager (TM) node deployment, set up a distributed APIM deployment—with support from @kavindasr —consisting of 2 ACP nodes, 2 GW nodes, 2 TM nodes, and a Redis Cluster hosted in AWS.

      • To support the Redis Cluster, I refactored the implementation to use JedisCluster instead of JedisPooled, and verified the functionality in this distributed setup.

      • Initially, a configuration mismatch caused the Redis count to be incremented multiple times per API request—once by each Traffic Manager. After identifying the issue, adjusted the configuration to ensure correct and consistent counter updates.

      分布式部署問題點說明

      • 兩個acp配置問題,acp需要配置自己和對方的發布消息的端口9611和9711,他們需要通訊,配置對方的5672的mq端口
      • 一個gateway沒有正常配置兩個acp,gateway需要配置所有acp的5672,9611,9711端口,和一個公共的acp服務的9433端口
      • 兩個tm配置問題,tm需要配置對方tm的5672端口,和一個公共的acp服務的9433端口

      apim-acp 兩個實例,配置時1配置2,2配置1

      wso2am-acp-1配置

      [apim.event_hub]
      enable = true
      username = "$ref{super_admin.username}"
      password = "$ref{super_admin.password}"
      service_url = "https://wso2am-acp-service:9443/services/"
      event_listening_endpoints = ["tcp://localhost:5672"]
      event_duplicate_url = ["tcp://wso2am-acp-2-service:5672"]
      
      [[apim.event_hub.publish.url_group]]
      urls = ["tcp://wso2am-acp-1-service:9611"]
      auth_urls = ["ssl://wso2am-acp-1-service:9711"]
      [[apim.event_hub.publish.url_group]]
      urls = ["tcp://wso2am-acp-2-service:9611"]
      auth_urls = ["ssl://wso2am-acp-2-service:9711"]
      

      wso2am-acp-2配置

      [apim.event_hub]
      enable = true
      username = "$ref{super_admin.username}"
      password = "$ref{super_admin.password}"
      service_url = "https://wso2am-acp-service:9443/services/"
      event_listening_endpoints = ["tcp://localhost:5672"]
      event_duplicate_url = ["tcp://wso2am-acp-1-service:5672"]
      
      [[apim.event_hub.publish.url_group]]
      urls = ["tcp://wso2am-acp-1-service:9611"]
      auth_urls = ["ssl://wso2am-acp-1-service:9711"]
      [[apim.event_hub.publish.url_group]]
      urls = ["tcp://wso2am-acp-2-service:9611"]
      auth_urls = ["ssl://wso2am-acp-2-service:9711"]
      

      apim-gateway 兩個副本,配置acp1和acp2

      # Traffic Manager configurations
      [apim.throttling]
      username= "$ref{super_admin.username}"
      password= "$ref{super_admin.password}"
      service_url = "https://wso2am-acp-service:9443/services/"
      throttle_decision_endpoints = ["tcp://wso2am-acp-1-service:5672","tcp://wso2am-acp-2-service:5672"]
      enable_unlimited_tier = true
      enable_header_based_throttling = true
      enable_jwt_claim_based_throttling = true
      enable_query_param_based_throttling = true
      
      
      [[apim.throttling.url_group]]
      traffic_manager_urls = ["tcp://wso2am-acp-1-service:9611","tcp://wso2am-acp-2-service:9611"]
      traffic_manager_auth_urls = ["ssl://wso2am-acp-1-service:9711","ssl://wso2am-acp-2-service:9711"]
      type = "loadbalance"
      
      [apim.event_hub]
      enable = true
      username = "$ref{super_admin.username}"
      password = "$ref{super_admin.password}"
      service_url = "https://wso2am-acp-service:9443/services/"
      event_listening_endpoints = ["tcp://wso2am-acp-1-service:5672","tcp://wso2am-acp-2-service:5672"]
      

      apim-tm 兩個實例,配置時1配置2,2配置1

      wso2am-tm-1配置

      [apim.key_manager]
      service_url = "https://wso2am-acp-service:9443/services/"
      # Traffic Manager configurations
      [apim.throttling]
      event_duplicate_url = ["tcp://wso2am-tm-2-service:5672"]
      service_url = "https://wso2am-tm-service:9443/services/"
      throttle_decision_endpoints = ["tcp://localhost:5672"]
      
      [apim.event_hub]
      enable = true
      username = "$ref{super_admin.username}"
      password = "$ref{super_admin.password}"
      service_url = "https://wso2am-acp-service:9443/services/"
      event_listening_endpoints = ["tcp://wso2am-acp-2-service:5672"]
      

      wso2am-tm-2配置

      [apim.key_manager]
      service_url = "https://wso2am-acp-service:9443/services/"
      # Traffic Manager configurations
      [apim.throttling]
      event_duplicate_url = ["tcp://wso2am-tm-1-service:5672"]
      service_url = "https://wso2am-tm-service:9443/services/"
      throttle_decision_endpoints = ["tcp://localhost:5672"]
      
      [apim.event_hub]
      enable = true
      username = "$ref{super_admin.username}"
      password = "$ref{super_admin.password}"
      service_url = "https://wso2am-acp-service:9443/services/"
      event_listening_endpoints = ["tcp://wso2am-acp-1-service:5672"]
      
      posted @ 2025-07-22 13:29  張占嶺  閱讀(56)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 狠狠躁日日躁夜夜躁欧美老妇 | 日本亚洲欧洲免费无线码| 国产激情一区二区三区不卡| 国产精品+日韩精品+在线播放| 国产中文字幕在线一区| 国产精品午夜福利视频| 日韩av片无码一区二区三区| 国产精品色三级在线观看| 国产成人午夜福利在线播放 | 综合色天天久久| 精品一区二区三区不卡| 91精品久久一区二区三区| 亚洲区一区二区三区精品| 亚洲熟妇自偷自拍另类| 狠狠躁天天躁中文字幕无码| 日韩精品国产中文字幕| 国产一级小视频| 国产福利深夜在线观看| 国产高清精品在线91| 性欧美VIDEOFREE高清大喷水| 国产一区二区三区麻豆视频| 亚洲大尺度视频在线播放| 手机在线国产精品| 深水埗区| 免费久久人人香蕉av| 中文字幕亚洲人妻系列| 2019香蕉在线观看直播视频| 四虎永久播放地址免费| 国产精品∧v在线观看| 日本黄色三级一区二区三区 | 中文字幕在线精品国产| 国产三级国产精品久久成人| 少妇人妻偷人免费观看| 丁香婷婷综合激情五月色| 亚洲情A成黄在线观看动漫尤物 | 国产成人亚洲精品青草天美| 偷偷做久久久久免费网站| 无套内谢少妇高清毛片| 一区二区亚洲精品国产精| 亚洲第一人伊伊人色综合| 无码av最新无码av专区|