Commit Graph

271 Commits

Author SHA1 Message Date
Eric Zhao 2e0fe23384 Bump version to 1.4.2 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-20 14:15:33 +08:00
Eric Zhao f7c08df5c1
Fix bug of calculating param size and amount in ParamFlowRequestDataWriter of Sentinel cluster (#495)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-20 14:00:14 +08:00
Eric Zhao 020a63fdb5
Bug fix: NPE when adding event count in ParamMapBucket (#494)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-20 13:57:05 +08:00
Eric Zhao ee4a0d43a1 Improve and fix bugs for ConnectionManager and add test cases
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-31 14:25:01 +08:00
Eric Zhao cd02fad290 Fix NPE bug when creating connection group in ConnectionManager
- The NPE will occur when multiple threads are trying to create the connection group for the same namespace

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-31 14:25:01 +08:00
Eric Zhao 412e1ece47
Carry the triggered rule in subclasses of BlockException (#469)
* Extract getRule in BlockException and refine override methods in subclasses

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-31 14:24:05 +08:00
yanlinly 1368154000 Update Nacos SDK version to 0.8 and update Nacos namespace demo (#474) 2019-01-31 09:21:39 +08:00
Eric Zhao f27d7a4b24 Improve ClusterServerConfigManager in sentinel-cluster-server-default and add basic test cases
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-30 16:41:39 +08:00
mjaow 5c0fd5651a Add volatile in double-checked locking field in ClusterBuilderSlot (#466) 2019-01-30 10:25:16 +08:00
Eric Zhao bac35ac100 Add back thread count metric type support for parameter flow control
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-30 09:37:13 +08:00
Eric Zhao 35537a691e Refinement for test cases
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-29 10:28:07 +08:00
cdfive 22e8d85a8f Add some unit test for StatisticNode, ClusterNode and DefaultNodeBuilder class (#423) 2019-01-29 10:07:17 +08:00
Andres Almiray e893dd8c64 Make build faster by reducing fixed waiting time in tests (#449)
- Apply awaitility to core tests
- Cache maven local repo in Travis
2019-01-29 09:57:38 +08:00
Eric Zhao 9e1b5a900b Update dependency version of fastjson and jacoco-maven-plugin
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-28 17:23:33 +08:00
Eric Zhao cd334406af Code and javadoc refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-28 16:22:34 +08:00
luoxiangnan f306a03090 HashMap init optimize when adding new ClusterNode to cluster node map (#465)
- reuse old map size to avoid rearrange and rehash the map
2019-01-28 15:47:39 +08:00
mjaow 2cf6e29e72 Fix zero-count divide overflow bug in RateLimiterController (#461) 2019-01-28 14:23:41 +08:00
mjaow 223ad252df Remove duplicate comment in WarmUpController (#464) 2019-01-28 11:44:31 +08:00
mjaow 30907e4c9d Fix error value type and rename variable in EntranceNode class (#457) 2019-01-26 10:44:10 +08:00
Eric Zhao 3109ac4bef Remove slf4j dependency in sentinel-annotation-aspectj
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-25 16:59:54 +08:00
Eric Zhao ba4fdcc638 Fixes #453: Support tracing exception count for specific entry or context in Tracer
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-25 16:34:17 +08:00
Eric Zhao 8e72211db9 Add catch throwable logic in ClusterStateManager to detect fatal error when loading SPI
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-25 13:48:31 +08:00
Eric Zhao 83f6de90b0 dashboard: update WebConfig and improve token server list page
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-21 19:18:20 +08:00
giegie 6d61fd0538 Add logback dependency in sentinel-demo-nacos-datasource to avoid log ClassNotFoundException thrown by Nacos client (#438) 2019-01-21 16:22:17 +08:00
Carpenter Lee 88fd74cdf4
Rename dashboard package name from com.taobao to com.alibaba (#435)
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-01-21 13:02:52 +08:00
huaifeng 70a3144cee Upgrade Dubbo version in sentinel-demo-dubbo (#436) 2019-01-21 12:45:49 +08:00
wangjunwei87 d8a522590c doc: fix typo in README of Sentinel Dubbo Demo (#425) 2019-01-16 18:39:52 +08:00
Eric Zhao 0969113710 Improve cluster embedded demo
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-16 16:24:01 +08:00
Carpenter Lee c45d64c619 Bug fix: fix 420, fix negative waitTime in RateLimiterController and WarmUpRateLimiterController
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-01-16 15:21:16 +08:00
cdfive 303ae86e27 dashboard: when click the first-level menu of sidebar, don't jump to the home page (#422) 2019-01-15 22:52:41 +08:00
kexianjun 9697c06739 Fix incorrect comment in NodeSelectorSlot javadoc (#419) 2019-01-15 17:18:07 +08:00
kangyl 47148acc1e Remove redundant semicolon in MetricWriter (#412) 2019-01-14 17:54:31 +08:00
Eric Zhao a5e95b7b24 Update cluster demo README and remove unused demo
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-14 14:16:58 +08:00
Eric Zhao a06a7cf86e Update document and pom for sentinel-zuul-adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-14 14:08:42 +08:00
moon tiger 3a1eb56338 Add adapter support for Zuul 1.x (#188)
- implement `SentinelPreFilter`, `SentinelPostFilter` and `SentinelErrorFilter`
- support fallback
2019-01-12 10:16:12 +08:00
Eric Zhao e42551a877 dashboard: frontend refinement of monitoring page and flow rule dialog description
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-10 10:34:14 +08:00
Arlmls 6dfe8e3098 dashboard: change text of p_qps and b_qps to be more intuitive in monitoring page (#398) 2019-01-09 17:16:32 +08:00
Eric Zhao 6c70c94e44 dashboard: structure rearrangement and polish related code
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-08 09:45:16 +08:00
Zhe Jiang 8970f5380c dashboard: add healthCount/total information in sidebar of Sentinel dashboard (#376) 2019-01-07 16:40:35 +08:00
cdfive 5a691140b0 dashboard: make fallbackToLocalWhenFail be configurable in dashboard and fix edit rule issue when cancel (#370)
- Make fallbackToLocalWhenFail of cluster rules configurable in dashboard
- Fix edit rule when hit cancel button (object share problem solved by deep copy)
- Add metric table td header's title for friendly prompt info
2019-01-07 16:17:19 +08:00
逅弈 c06aa6e290 doc: add blog with Sentinel in action (#392) 2019-01-07 11:54:28 +08:00
Eric Zhao d4d85dbc7c Bump version to 1.4.2-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 19:08:07 +08:00
Eric Zhao 225d81ed93 Bump version to 1.4.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:59:50 +08:00
Eric Zhao bf34f8b3be Polish Sentinel dashboard frontend for cluster flow control enhancement
- Add cluster server list and assign page and client list page (for a specific app)

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:56:57 +08:00
Eric Zhao 8d413e1645 Polish Sentinel dashboard backend for cluster flow control enhancement
- Add cluster token server management controller and service for app
- Other enhancements and fixes

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:56:57 +08:00
Eric Zhao f82fcd696f Add basic monitoring command API for cluster token server
- Also add top-K frequent parameter statistic support

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:38:17 +08:00
Eric Zhao 1b68d0c9a0 Polish cluster token server handler related logic
- Enlarge retry timeout to 2s by default
- Improve remote address representation

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:36:46 +08:00
Eric Zhao e4d0f4c6ab Improve namespace register logic for embedded token server mode
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:35:22 +08:00
Eric Zhao 6a9d479216 Improvements for cluster token client retry and stop control logic
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:25:52 +08:00
Eric Zhao aa6c334703 Disable spell checking in Circle CI lint temporary (need more config later)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:19:46 +08:00