Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support use database as a registry #4595

Merged
merged 34 commits into from
Oct 23, 2022
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a9e0e3c
feat: support use database as a registry
Anilople Oct 2, 2022
46df1c0
fix: test fail when missing bean RegistryService
Anilople Oct 2, 2022
4a06884
Delete RegistryController.java
Anilople Oct 10, 2022
5615639
feat: add spring.cloud.discovery.enabled=false
Anilople Oct 10, 2022
c84a4b5
refactor: healthCheckInterval -> healthCheckIntervalInSecond
Anilople Oct 10, 2022
aa61c4c
fix: 'com.ctrip.framework.apollo.biz.repository.RegistryRepository' t…
Anilople Oct 10, 2022
c2be03d
refactor: Registry -> ServiceRegistry. change all config prefix to ap…
Anilople Oct 10, 2022
343d9f9
feat: add service registry config heartbeatIntervalInSecond
Anilople Oct 10, 2022
1eed34a
feat: clear service instances 1 days ago
Anilople Oct 10, 2022
e4513c6
fix: move '@Transactional' from repository up to service
Anilople Oct 10, 2022
4fa67b7
refactor: Change all to use jvm `LocalDateTime.now()`
Anilople Oct 10, 2022
bcc5575
fix test fail
Anilople Oct 10, 2022
98b55f7
Update apolloconfigdb.sql
Anilople Oct 10, 2022
e6de6ae
refactor: split heartbeat and deregister
Anilople Oct 10, 2022
a1c1488
fix: catch Throwable instead of catch Exception
Anilople Oct 14, 2022
ef4fc4b
refactor: use stream and lambda instead of for each loop filter
Anilople Oct 14, 2022
fa0d4f7
delete USING BTREE
Anilople Oct 14, 2022
fbf7d2d
fix: label -> cluster
Anilople Oct 14, 2022
5d57924
Update scripts/sql/apolloconfigdb.sql
Anilople Oct 14, 2022
5bb73d1
Update scripts/sql/delta/v210-v220/apolloconfigdb-v210-v220.sql
Anilople Oct 14, 2022
16f237d
test: add bean exist check
Anilople Oct 14, 2022
a9a05b9
feat: add Metadata column
Anilople Oct 14, 2022
c61f8ef
refactor: only use cluster in DatabaseDiscoveryClientImpl
Anilople Oct 14, 2022
ad2a1f0
feat: add metadata config in code
Anilople Oct 14, 2022
4cb1443
Merge branch 'master' into feature/register-to-database
Anilople Oct 14, 2022
c358128
Merge branch 'master' into feature/register-to-database
Anilople Oct 17, 2022
6fa748f
test: add tests of registry
Anilople Oct 17, 2022
b4fc7f0
Merge branch 'master' into feature/register-to-database
Anilople Oct 20, 2022
9219f34
docs: Enable database-discovery to replace built-in eureka
Anilople Oct 20, 2022
1baec92
Update CHANGES.md
Anilople Oct 20, 2022
4c3e409
room -> cluster
Anilople Oct 22, 2022
8eea742
room -> cluster
Anilople Oct 22, 2022
02370fa
feat: when database fail, database-discovery still be useful. by deco…
Anilople Oct 23, 2022
1d1d77e
test: fix when DatabaseDiscoveryClient wrap by decorator
Anilople Oct 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: label -> cluster
Anilople committed Oct 14, 2022
commit fbf7d2dc311d3f2453d9bfe10659de3bfaa8e98f
Original file line number Diff line number Diff line change
@@ -49,14 +49,14 @@ private void deregister() {
try {
this.serviceRegistry.deregister(this.registration);
log.info(
"deregister success, '{}' uri '{}', label '{}'",
"deregister success, '{}' uri '{}', cluster '{}'",
this.registration.getServiceName(),
this.registration.getUri(),
this.registration.getCluster()
);
} catch (Throwable t) {
log.error(
"deregister fail, '{}' uri '{}', label '{}'",
"deregister fail, '{}' uri '{}', cluster '{}'",
this.registration.getServiceName(),
this.registration.getUri(),
this.registration.getCluster(),
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ public ApolloServiceRegistryHeartbeatApplicationRunner(
public void run(ApplicationArguments args) throws Exception {
// register
log.info(
"register to database. '{}': uri '{}', label '{}' ",
"register to database. '{}': uri '{}', cluster '{}' ",
this.registration.getServiceName(),
this.registration.getUri(),
this.registration.getCluster()