内容发布更新时间 : 2024/11/8 2:44:34星期一 下面是文章的全部内容请认真阅读。
API Manager分布式部署
API Manager分布式部署
基础平台组 2015年9月
API Manager分布式部署
目录
第1章 总体说明 .............................................................................................................................. 1 1.1 修订历史 ....................................................................................................................................... 1 1.2 内容简介 ....................................................................................................................................... 1 1.3 用户范围 ....................................................................................................................................... 1 1.4 原文参考 ....................................................................................................................................... 1 第2章 API MANAGER集群简介 ...................................................................................................... 2 2.1 理解API MANAGER架构 ................................................................................................................. 2 第3章 配置概要 .............................................................................................................................. 4 3.1 配置描述 ....................................................................................................................................... 4 第4章 建立数据库 .......................................................................................................................... 5 4.1 创建数据库 ................................................................................................................................... 5
4.1.1 建3个库并建表及用户 ................................................................................................ 5 4.1.2 补充说明 ....................................................................................................................... 5
第5章 配置API MANAGER .............................................................................................................. 6 5.1 配置API MANAGER .......................................................................................................................... 6
5.1.1 配置数据源(master-datasources.xml) ........................................................................... 6 5.1.2 拷贝JDBC连接包 ........................................................................................................ 8 5.1.3 修改用户数据源(user-mgt.xml) .................................................................................... 8 5.1.4 配置registry(registry.xml)............................................................................................. 8 5.1.5 配置axis2 (axis2.xml) ................................................................................................... 9 5.1.6 修改默认端口 ............................................................................................................... 9 5.2 配置组件关系 ............................................................................................................................. 11
5.2.1 配置Key Manager(api-manager.xml) .................................................................... 11 5.2.2 配置Gateway(api-manager.xml)............................................................................ 12 5.2.3 配置Publisher 和 Store(api-manager.xml) .......................................................... 13 5.2.4 配置Publisher 和 Store在同一个集群域 ................................................................ 14 5.2.5 配置组件特性 ............................................................................................................. 15 5.3 STORE和PUBLISHER中添加导航链接 ............................................................................................ 17
5.3.1 在API Publisher中添加到API Store的导航 ........................................................... 17 5.3.2 在API Store中添加到API Publisher的导航 ........................................................... 18
第6章 启动API MANAGER ............................................................................................................ 19 6.1 设置JVM参数 ............................................................................................................................ 19 6.2 设置组件参数 ............................................................................................................................. 19 第7章 配置监控统计 .................................................................................................................... 21 7.1 配置描述 ..................................................................................................................................... 21 第8章 配置GATEWAY集群 ........................................................................................................... 22
I
API Manager分布式部署
8.1 配置描述 ..................................................................................................................................... 22 8.2 配置负载均衡 ............................................................................................................................. 24
8.2.1 安装Nginx .................................................................................................................. 24 8.2.2 配置负载均衡 ............................................................................................................. 26 8.3 创建SSL证书 .............................................................................................................................. 30 8.4 配置GATEWAY管理节点 .............................................................................................................. 31
8.4.1 配置axis2.xml文件 .................................................................................................... 31 8.4.2 配置carbon.xml文件 ................................................................................................. 33 8.4.3 配置catalina-server.xml文件 ..................................................................................... 33 8.4.4 映射主机名和IP ......................................................................................................... 33 8.4.5 启动Gateway管理节点 ............................................................................................. 34 8.5 配置GATEWAY工作节点 .............................................................................................................. 34
8.5.1 配置axis2.xml文件 .................................................................................................... 34 8.5.2 配置carbon.xml文件 ................................................................................................. 35 8.5.3 配置catalina-server.xml文件 ..................................................................................... 35 8.5.4 映射主机名和IP ......................................................................................................... 36 8.5.5 启动Gateway工作节点 ............................................................................................. 36 8.6 配置基于SVN的部署同步 ......................................................................................................... 36
8.6.1 配置SVN服务端环境 ................................................................................................ 36 8.6.2 配置SVN版本库........................................................................................................ 36 8.6.3 拷贝相关文件到指定目录 .......................................................................................... 37 8.6.4 在AM Gateway中启用文件同步 .............................................................................. 37
第9章 FAQ(常见问题解答) ...................................................................................................... 39 9.1 出现数据库异常 ......................................................................................................................... 39 9.2 HOSTNAME VERFIICATION FAILED异常 ................................................................................................. 39 第10章 附录 .................................................................................................................................. 40 10.1 CLUSTERING DEPLOYMENT PATTERN ..................................................................................................... 40 10.2 MEMBERSHIP SCHEMES ..................................................................................................................... 40 10.3 API MANAGER CLUSTERING DEPLOYMENT PATTERNS ............................................................................. 40 10.4 CONFIGURING DEPLOYMENT SYNCHRONIZER ......................................................................................... 40 10.5 PRODUCT PROFILES .......................................................................................................................... 40 10.6 MULTIPLE PROFILES ......................................................................................................................... 40
II