分布式系统
分布式系统特性概念
- 系统的各组件分布于网络上多个计算机
- 各组件彼此之间仅仅通过消息传递来通信并协调行动
分布式存在的意义
扩展了单机处理的弱势以及瓶颈
- 向上扩展的性价比越来越底
- 单机扩展存在性能上升临界点
- 处于稳定行以及可用性考虑, 单机会存在多方面的问题
线程可以共享进程的多种资源
if [ $JAR_NAME == “hqp-refund-service” ];then
dir=”./hqp-refund/hqp-refund-service”
rely=”./hqp-refund/hqp-refund-api
elif [ $JAR_NAME == “hqp-purchase-bid-service” ];then
dir=”./hqp-purchase-bid/hqp-purchase-bid-service”
rely=”./hqp-purchase-bid/hqp-purchase-bid-api”
elif [ $JAR_NAME == “hqp-order-service” ];then
dir=”./hqp-order/hqp-order-service”
rely=”./hqp-order/hqp-order-api,./hqp-refund/hqp-refund-api,./hqp-coupon/hqp-coupon-api”
fi
if [ $JAR_NAME == “hqp-refund-service” ];then
dir=”2222”
rely=”./hqp-refund/hqp-refund-api
elif [ $JAR_NAME == “hqp-purchase-bid-service” ];then
dir=”./hqp-purchase-bid/hqp-purchase-bid-service”
rely=”./hqp-purchase-bid/hqp-purchase-bid-api”
elif [ $JAR_NAME == “hqp-order-service” ];then
dir=”./hqp-order/hqp-order-service”
rely=”./hqp-order/hqp-order-api,./hqp-refund/hqp-refund-api,./hqp-coupon/hqp-coupon-api”
fi
kubectl scale –replicas=2 deployment/zeus-bi deployment/zeus-store deployment/zeus-store -n hqp-fat2
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!