Sers NetCore 部署文件
Sers爲一套 跨平臺 跨語言 的開源 微服務架構協議。
https://github.com/sersms/Sers_NetCore_HelloWorld
https://github.com/sersms/Sers_NetCore_HelloWorld_Publish/tree/master/Sers/20190306
可部署到Linux(centos7或ubuntu) 。
在windows系統中可以直接打開對應的exe文件運行(如 App.ServiceCenter.Exe.exe )。
務必先運行服務中心(ServiceCenter)
運行環境 netcore2.1
運行步驟
(x.1)下載程序文件
(x.2) 解壓zip文件,windows系統雙擊Startup-All.bat,Linux執行Startup-All.bash中的命令即可。
(x.3) 打開服務治理導航頁面 http://localhost:6022/index.html
性能初測
部署(或運行)ServiceCenter Gover Gateway Robot DemoStation五個項目。
qps數據來源於jmeter和 http://ip:6022/ApiStationMng.html 頁面中的統計
項目均部署在同一機器,消息隊列使用SocketMq
Os | 調用線程數 | qps(內部調用) | qps(http網關調用-本機) | qps(jmeter調用http網關-外部) |
---|---|---|---|---|
Ubuntu(6核2G) | 10 | 7000 | 2000 | 1700 |
CentOs7(1核1G) | 10 | 4000 | 1100 | 840 |
CentOs7(2核1G) | 10 | 5000 | 1500-2000 | 1300 |
CentOs7(6核1G) | 10 | 8000-9400 | 3000 | 1800 |
Windows10 | 10 | 6000 | 400 | 1600 |
Server2012(6核2G) | 10 | 15000-17000 | 2200 |
模塊
(x.1)服務中心(ServiceCenter)
功能:服務註冊,請求分發(負載均衡),消息訂閱等。所有服務站點都需要向此站點註冊。
linux: ServiceCenter/App.ServiceCenter.dll
windows: ServiceCenter/App.ServiceCenter.Exe.exe
(x.2)服務治理(Gover)
功能:管理監控服務、站點,服務限流,服務統計等。服務治理實際部署在服務中心,此站點爲服務治理的用戶界面。
部署後可打開地址進行管理 http://ip:6022/index.html
linux: Gover/App.Gover.Gateway.dll
windows: ServiceCenter/App.Gover.Gateway.Exe.exe
(x.3)Http網關(ServiceStation)
功能:外部接口通過本網關調用內部服務。
linux: Gateway/App.Gateway.dll
windows: Gateway/App.Gateway.Exe.exe
(x.4)服務站點(ServiceStation)
DemoStation
功能:站點Demo。
linux: DemoStation/App.Demo.ServiceStation.dll
windows: DemoStation/App.Demo.ServiceStation.Exe.exe
Robot
功能:可以循環調用指定接口,可用來負載測試。
http://ip:6022/_robot_/TaskMng.html
linux: Robot/App.Robot.ServiceStation.dll
windows: Robot/App.Robot.ServiceStation.Exe.exe