# springcloud **Repository Path**: lazybonesli/SpringCloud ## Basic Information - **Project Name**: springcloud - **Description**: 分布式学习! - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-11-04 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # springcloud #### 介绍 分布式学习! ### Robbin 测试负载均衡 轮询 访问 localhost/comsumer/dept/list 查看返回结果内返回的是哪个数据库的.应该是每个数据库都返回一次 # Hystrix 测试熔断 localhost/comsumer/dept/get/255 数据库不存在的数据 ## 服务降级 运行某个provider,然后关闭,再访问某个连接就会出现下面的信息 {"deptno":1,"dname":"该ID:1没有没有对应的信息,Consumer客户端提供的降级信息, 此刻服务Provider已经关闭","db_source":"no this database in MySQL"} # 服务监控 http://localhost:8001/hystrix.stream ping: data: {"type":"HystrixCommand","name":"get","group":"DeptController","currentTime":1573113785012,"isCircuitBreakerOpen":false,"errorPercentage":0,"errorCount":0,"requestCount":0,"rollingCountBadRequests":0,"rollingCountCollapsedRequests":0,"rollingCountEmit":0,"rollingCountExceptionsThrown":0,"rollingCountFailure":0,"rollingCountFallbackEmit":0,"rollingCountFallbackFailure":0,"rollingCountFallbackMissing":0,"rollingCountFallbackRejection":0,"rollingCountFallbackSuccess":0,"rollingCountResponsesFromCache":0,"rollingCountSemaphoreRejected":0,"rollingCountShortCircuited":0,"rollingCountSuccess":0,"rollingCountThreadPoolRejected":0,"rollingCountTimeout":0,"currentConcurrentExecutionCount":0,"rollingMaxConcurrentExecutionCount":0,"latencyExecute_mean":0,"latencyExecute":{"0":0,"25":0,"50":0,"75":0,"90":0,"95":0,"99":0,"99.5":0,"100":0},"latencyTotal_mean":0,"latencyTotal":{"0":0,"25":0,"50":0,"75":0,"90":0,"95":0,"99":0,"99.5":0,"100":0},"propertyValue_circuitBreakerRequestVolumeThreshold":20,"propertyValue_circuitBreakerSleepWindowInMilliseconds":5000,"propertyValue_circuitBreakerErrorThresholdPercentage":50,"propertyValue_circuitBreakerForceOpen":false,"propertyValue_circuitBreakerForceClosed":false,"propertyValue_circuitBreakerEnabled":true,"propertyValue_executionIsolationStrategy":"THREAD","propertyValue_executionIsolationThreadTimeoutInMilliseconds":1000,"propertyValue_executionTimeoutInMilliseconds":1000,"propertyValue_executionIsolationThreadInterruptOnTimeout":true,"propertyValue_executionIsolationThreadPoolKeyOverride":null,"propertyValue_executionIsolationSemaphoreMaxConcurrentRequests":10,"propertyValue_fallbackIsolationSemaphoreMaxConcurrentRequests":10,"propertyValue_metricsRollingStatisticalWindowInMilliseconds":10000,"propertyValue_requestCacheEnabled":true,"propertyValue_requestLogEnabled":true,"reportingHosts":1,"threadPool":"DeptController"} data: {"type":"HystrixThreadPool","name":"DeptController","currentTime":1573113785017,"currentActiveCount":0,"currentCompletedTaskCount":1,"currentCorePoolSize":10,"currentLargestPoolSize":1,"currentMaximumPoolSize":10,"currentPoolSize":1,"currentQueueSize":0,"currentTaskCount":1,"rollingCountThreadsExecuted":0,"rollingMaxActiveThreads":0,"rollingCountCommandRejections":0,"propertyValue_queueSizeRejectionThreshold":5,"propertyValue_metricsRollingStatisticalWindowInMilliseconds":10000,"reportingHosts":1} # Springcloud config http://config-3344.com:3344/application-dev.yml spring: application: name: microservicecloud-config-atguigu-dev profiles: active: - dev http://config-3344.com:3344/application-test.yml spring: application: name: microservicecloud-config-atguigu-test profiles: active: - dev http://config-3344.com:3344/application-xxx.yml(不存在的配置) spring: profiles: active: - dev #客户端读取数 bootstrap.yml里面的profile值是什么,决定从github上读取什么 http://client-config.com:8201/config dev默认在github上对应的端口就是8201 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request