1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-07-28 12:32:15 +08:00

Updated 春松客服上架青云AppCenter (markdown)

Samurais 2018-10-11 17:05:34 +08:00
parent 64b09db953
commit 95ccb3192a

@ -59,13 +59,20 @@
**春松客服** 应用在青云AppCenter中浏览[企业管理](https://console.qingcloud.com/pek3/apps/browse/)查看。
<img src="https://user-images.githubusercontent.com/3538629/46782869-852efd00-cd5a-11e8-98a0-540ea42ca177.png" width="800" />
<p align="center">
<b>春松客服 on QingCloud</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46782869-852efd00-cd5a-11e8-98a0-540ea42ca177.png" width="800">
</p>
### 基本概念
**春松客服** 的运行机制如下:
![image](https://user-images.githubusercontent.com/3538629/46783676-c1179180-cd5d-11e8-8383-59a6c71034fe.png)
<p align="center">
<b>运行机制</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46783676-c1179180-cd5d-11e8-8383-59a6c71034fe.png" width="800">
</p>
| 概念 | 描述 |
@ -97,7 +104,12 @@
进入 [VPC网络](https://console.qingcloud.com/pek3/routers/),并点击*创建VPC网络*。
![image](https://user-images.githubusercontent.com/3538629/46784731-d098d980-cd61-11e8-8c4d-be2734897383.png)
<p align="center">
<b>创建VPC网络</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46784731-d098d980-cd61-11e8-8c4d-be2734897383.png" width="800">
</p>
在该VPC网络中会自动绑定一个公网IP该公网IP可供VPN链接服务使用VPN连接到该VPC网络下的主机。
@ -105,7 +117,11 @@
进入 [负载均衡器](https://console.qingcloud.com/pek3/loadbalancers/),并点击*创建负载均衡器*。
![image](https://user-images.githubusercontent.com/3538629/46785060-2ae66a00-cd63-11e8-986f-b29321c46b05.png)
<p align="center">
<b>创建负载均衡器</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46785060-2ae66a00-cd63-11e8-986f-b29321c46b05.png" width="800">
</p>
此时可以选择该负载均衡器【1】绑定公网IP【2】私有网络。
@ -120,7 +136,11 @@
创建负载均衡器后,还需要创建监听器,支持请求分发功能,在负载均衡器详情页面,点击“创建监听器”。
![image](https://user-images.githubusercontent.com/3538629/46785891-c1b42600-cd65-11e8-916e-635b4024cc7e.png)
<p align="center">
<b>负载均衡器</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46785891-c1b42600-cd65-11e8-916e-635b4024cc7e.png" width="800">
</p>
监听器包含很多选项,注意以下项目(部分项目需要点击“显示高级选项”):
@ -135,7 +155,11 @@
其它选项保持默认,点击**提交**,然后自动进入到该监听器的详情,此时该监听器并没有作用,需要点击“应用修改”完成更新。
![image](https://user-images.githubusercontent.com/3538629/46788015-c8de3280-cd6b-11e8-87a9-9bc214f3cf4a.png)
<p align="center">
<b>监听器</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46788015-c8de3280-cd6b-11e8-87a9-9bc214f3cf4a.png" width="800">
</p>
经过上述步骤创建了一个VPC网络【cosin-app-dev】一个负载均衡器【LB1】一个监听器【cskefu】。在部署**春松客服**应用时,将用到这些资源。
@ -143,15 +167,26 @@
**QingCloud MySQL Plus**是青云官方出品的MySQL服务在**AppCenter**通过*搜索应用名称*或在应用分类中浏览*数据库与中间件*获得应用链接。
![image](https://user-images.githubusercontent.com/3538629/46786669-240e2600-cd68-11e8-8636-7d6f8775377d.png)
<p align="center">
<b>浏览应用</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46786669-240e2600-cd68-11e8-8636-7d6f8775377d.png" width="800">
</p>
点击“QingCloud MySQL Plus”进入应用详情页面。
![image](https://user-images.githubusercontent.com/3538629/46786831-a1399b00-cd68-11e8-89a6-ae5f54e95db3.png)
<p align="center">
<b>MySQL应用</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46786831-a1399b00-cd68-11e8-89a6-ae5f54e95db3.png" width="800">
</p>
点击“立即部署”,进入部署页面。
![image](https://user-images.githubusercontent.com/3538629/46786902-dd6cfb80-cd68-11e8-9476-4af1649e688f.png)
<p align="center">
<b>立即部署</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46786902-dd6cfb80-cd68-11e8-9476-4af1649e688f.png" width="800">
</p>
部署页面有很多选项,主要项目如下:
@ -167,7 +202,10 @@
其它项目可使用默认,点击“提交”。然后,自动跳转到该集群详情页面。
![image](https://user-images.githubusercontent.com/3538629/46787298-d4305e80-cd69-11e8-89a1-0fb6031d645f.png)
<p align="center">
<b>集群详情</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46787298-d4305e80-cd69-11e8-89a1-0fb6031d645f.png" width="800">
</p>
该服务部署过程大约3~10分钟**QingCloud MySQL Plus**提供了强大的运维管理功能。
@ -175,11 +213,19 @@
**Redis Standalone on QingCloud**是青云官方出品的Redis服务在**AppCenter**通过*搜索应用名称*或在应用分类中浏览*数据库与中间件*获得应用链接。
![image](https://user-images.githubusercontent.com/3538629/46788098-0ba00a80-cd6c-11e8-9cf1-6a6bf5bf2b2e.png)
<p align="center">
<b>Redis应用</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46788098-0ba00a80-cd6c-11e8-9cf1-6a6bf5bf2b2e.png" width="800">
</p>
点击“立即部署”,进入部署页面。
![image](https://user-images.githubusercontent.com/3538629/46788231-443fe400-cd6c-11e8-8f99-44c7d98e2d7a.png)
<p align="center">
<b>运维管理</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46788231-443fe400-cd6c-11e8-8f99-44c7d98e2d7a.png" width="800">
</p>
部署页面有很多选项,主要项目如下:
@ -194,12 +240,19 @@
该服务部署过程大约2~5分钟**Redis Standalone on QingCloud**提供了强大的运维管理功能。
![image](https://user-images.githubusercontent.com/3538629/46788461-b6b0c400-cd6c-11e8-912a-dda9c5a4e220.png)
<p align="center">
<b>运维管理</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46788461-b6b0c400-cd6c-11e8-912a-dda9c5a4e220.png" width="800">
</p>
通过**AppCenter管理**页面,查看已部署的应用的状态。
<p align="center">
<b>管理集群</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46788568-f9729c00-cd6c-11e8-9c20-10489de1961f.png" width="800">
</p>
![image](https://user-images.githubusercontent.com/3538629/46788568-f9729c00-cd6c-11e8-9c20-10489de1961f.png)
如图,**cskefu.redis**的状态为*创建中***cskefu.mysql**的状态为*等待中*,稍侯一会,它们的状态会更新为*活跃*,此时,二者都处于可用状态,就可以部署**春松客服**了。
@ -208,12 +261,18 @@
**春松客服**是Chatopera出品的智能客服服务在**AppCenter**通过*搜索应用名称*或在应用分类中浏览*企业管理*获得应用链接。
![image](https://user-images.githubusercontent.com/3538629/46789055-2e332300-cd6e-11e8-861a-a5a1762d6b4b.png)
<p align="center">
<b>春松客服 on QingCloud</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46789055-2e332300-cd6e-11e8-861a-a5a1762d6b4b.png" width="800">
</p>
点击“立即部署”,进入部署页面。
![image](https://user-images.githubusercontent.com/3538629/46788931-d8f71180-cd6d-11e8-8ada-93188df0cabb.png)
<p align="center">
<b>立即部署</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46788931-d8f71180-cd6d-11e8-8ada-93188df0cabb.png" width="800">
</p>
部署页面有很多选项,主要项目如下:
@ -227,11 +286,18 @@
点击“提交”,提交后进入应用详情界面,此时,应用状态为“创建中”。
![image](https://user-images.githubusercontent.com/3538629/46789582-5f602300-cd6f-11e8-92e0-44f257ddd387.png)
<p align="center">
<b>集群详情</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46789582-5f602300-cd6f-11e8-92e0-44f257ddd387.png" width="800">
</p>
稍侯3~5分钟状态更新为“活跃”服务状态更新为“正常”代表服务已经部署完成。
![image](https://user-images.githubusercontent.com/3538629/46789764-dc8b9800-cd6f-11e8-96e0-46845af58c5d.png)
<p align="center">
<b>集群状态</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46789764-dc8b9800-cd6f-11e8-96e0-46845af58c5d.png" width="800">
</p>
此前在部署参数中选择了一种简单的模式ElasticSearch和Tomcat的节点各有一个如上图其IP分别为*192.168.0.7*和*192.168.0.6*。稍后介绍访问**春松客服工作台**。
@ -249,28 +315,47 @@ VPC网络为私有网络借助青云提供的VPN文档用户可以安装VP
在负载均衡器页面查看IP地址然后从浏览器打开*http://{{LB1_IP}}*,就可以访问**春松客服工作台**。
![image](https://user-images.githubusercontent.com/3538629/46790478-a222fa80-cd71-11e8-8561-566b68afe4a0.png)
<p align="center">
<b>春松客服坐席工作台</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46790478-a222fa80-cd71-11e8-8561-566b68afe4a0.png" width="800">
</p>
默认登陆账号:*admin*,密码:*admin1234*。
默认登陆账号:*admin*,密码:*admin1234*。更为详细的[使用说明](#面向企业业务人员使用说明书)。
## 监控/报警
**春松客服**支持强大的运维管理工具。
![image](https://user-images.githubusercontent.com/3538629/46789637-83236900-cd6f-11e8-89bd-63382772ea5e.png)
<p align="center">
<b>集群管理菜单</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46789637-83236900-cd6f-11e8-89bd-63382772ea5e.png" width="800">
</p>
比如HTTP的请求响应时间
![image](https://user-images.githubusercontent.com/3538629/46790661-05149180-cd72-11e8-90b3-8dd857bd67b0.png)
<p align="center">
<b>HTTP响应时间</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46790661-05149180-cd72-11e8-90b3-8dd857bd67b0.png" width="800">
</p>
## 动态伸缩
![image](https://user-images.githubusercontent.com/3538629/46791849-9127b880-cd74-11e8-8051-e95a118c0491.png)
<p align="center">
<b>扩容集群</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46791849-9127b880-cd74-11e8-8051-e95a118c0491.png" width="800">
</p>
在集群详情页面,点击“新增节点”,按照需求选择新增*ElasticSearch*或*Tomcat*节点,或在应用基本属性进入菜单,选择*扩容集群*。
删除节点时,勾选目标节点,点击“删除”。
![image](https://user-images.githubusercontent.com/3538629/46791486-d7304c80-cd73-11e8-806e-5e982f48e44c.png)
<p align="center">
<b>删除节点</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46791486-d7304c80-cd73-11e8-806e-5e982f48e44c.png" width="800">
</p>
## 备份与恢复
@ -280,7 +365,11 @@ VPC网络为私有网络借助青云提供的VPN文档用户可以安装VP
首先创建春松客服备份:
![image](https://user-images.githubusercontent.com/3538629/46790792-4ad15a00-cd72-11e8-9e39-c591f4afac60.png)
<p align="center">
<b>创建春松客服备份</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46790792-4ad15a00-cd72-11e8-9e39-c591f4afac60.png" width="800">
</p>
然后在**QingCloud MySQL Plus**和**Redis Standalone on QingCloud**的应用中,也创建备份。
**春松客服**, **QingCloud MySQL Plus**和**Redis Standalone on QingCloud**都备份后,得到相应的三个**备份链ID**这三个ID为一组代表了服务在同一个时刻的全状态IT管理员需要将这组ID记录下来。
@ -289,7 +378,11 @@ VPC网络为私有网络借助青云提供的VPN文档用户可以安装VP
首先决定恢复哪一组备份链ID然后按照**QingCloud MySQL Plus** - **Redis Standalone on QingCloud** - **春松客服**的顺序恢复备份。
![image](https://user-images.githubusercontent.com/3538629/46790939-8c620500-cd72-11e8-9420-40d05cd60a17.png)
<p align="center">
<b>恢复备份</b><br>
<img src="https://user-images.githubusercontent.com/3538629/46790939-8c620500-cd72-11e8-9420-40d05cd60a17.png" width="800">
</p>
# 面向企业业务人员使用说明书