You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ Apollo 3.0.0
6
6
7
7
------------------
8
8
*[Fix: include super admin in hasAnyPermission semantics](https://github.com/apolloconfig/apollo/pull/5568)
9
+
*[Change: official Config/Admin packages now default to database discovery; upgraded Eureka deployments should explicitly keep the `github` profile to preserve legacy behavior](https://github.com/apolloconfig/apollo/pull/5580)
9
10
10
11
------------------
11
12
All issues and pull requests are [here](https://github.com/apolloconfig/apollo/milestone/18?closed=1)
Copy file name to clipboardExpand all lines: docs/en/deployment/distributed-deployment-guide.md
+16-17Lines changed: 16 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -477,6 +477,8 @@ This script will package apollo-configservice, apollo-adminservice, apollo-porta
477
477
478
478
> Note: Since ApolloConfigDB is deployed in each environment, you need to use different packages for config-service and admin-service for different environments with different database connection information, and only one package for portal
479
479
480
+
> Note: When built with the official `build.sh/build.bat` script, `apollo-configservice` and `apollo-adminservice` default to `github,database-discovery`, while `apollo-portal` defaults to `github,auth`. If you are rebuilding source for an existing Eureka deployment and want to keep the old behavior, change the corresponding Maven command back to `-Dapollo_profile=github`. For already unpacked installation packages or running containers, explicitly set `SPRING_PROFILES_ACTIVE=github`, or configure `spring.profiles.active=github` in `config/application.properties`.
481
+
480
482
##### 2.2.1.2.4 Get the apollo-config-service installation package
481
483
482
484
Located in the `apollo-configservice/target/` directory `apollo-configservice-x.x.x-github.zip`
@@ -495,6 +497,8 @@ Note that since ApolloConfigDB is deployed in each environment, the admin-servic
495
497
496
498
### 2.2.2 Deploy Apollo server
497
499
500
+
> Note: Installation packages for `apollo-configservice` and `apollo-adminservice` generated from the official release packages, Docker images, or `build.sh/build.bat` now enable `database-discovery` by default. If you want an upgraded legacy Eureka deployment to keep the old behavior, explicitly set `SPRING_PROFILES_ACTIVE=github` at runtime, or configure `spring.profiles.active=github` in the unpacked `config/application.properties`.
501
+
498
502
#### 2.2.2.1 Deploy apollo-configservice
499
503
500
504
Upload the `apollo-configservice-x.x.x-github.zip` of the corresponding environment to the server, decompress it and execute scripts/startup.sh. To stop the service, execute scripts/shutdown.sh.
> Note 2: To adjust the log output path of the service, you can modify `LOG_DIR` in scripts/startup.sh and apollo-configservice.conf.
511
515
512
-
> Note 3: To adjust the listening port of the service, you can modify the `SERVER_PORT` in scripts/startup.sh. In addition, apollo-configservice also assumes the responsibility of meta server. If you want to modify the port, pay attention to the `eureka.service.url` configuration item in the ApolloConfigDB.ServerConfig table and the meta server information used in apollo-portal and apollo-client. For details, see:[2.2.1.1.2.4 Configuring the meta service information of apollo-portal](en/deployment/distributed-deployment-guide?id=_221124-configuring-apollo-portal39s-meta-service-information) and [1.2.2 Apollo Meta Server](en/client/java-sdk-user-guide?id=_122-apollo-meta-server).
516
+
> Note 3: To adjust the listening port of the service, you can modify the `SERVER_PORT` in scripts/startup.sh. In addition, apollo-configservice also assumes the responsibility of meta server. If you want to modify the port, update the meta server information used by apollo-portal and apollo-client as well. For details, see [2.2.1.1.2.4 Configuring the meta service information of apollo-portal](en/deployment/distributed-deployment-guide?id=_221124-configuring-apollo-portal39s-meta-service-information) and [1.2.2 Apollo Meta Server](en/client/java-sdk-user-guide?id=_122-apollo-meta-server). If you still use the built-in Eureka, you also need to update the `eureka.service.url` configuration item in the ApolloConfigDB.ServerConfig table.
513
517
514
-
> Note 4: If the eureka.service.url of ApolloConfigDB.ServerConfig is only configured with the currently starting machine, the eureka registration failure information will be output in the log during the process of starting apollo-configservice, such as `com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused`. It should be noted that this is the expected situation, because apollo-configservice needs to register the service with the Meta Server (itself), but because it has not yet woken up during the startup process, it will report this error. The retry action will be performed later, so the registration will be normal after the service is up.
518
+
> Note 4: This note only applies when you keep using the built-in Eureka. If the `eureka.service.url` of ApolloConfigDB.ServerConfig is configured with only the machine that is currently starting, apollo-configservice may log Eureka registration failures such as `com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused` during startup. This is expected because apollo-configservice needs to register itself to the Meta Server while it is still starting. It will retry automatically and register successfully after the service is fully up.
515
519
516
520
> Note 5: Starting from version 2.5.0, apollo-configservice supports graceful shutdown. When the service receives a stop signal, it will wait for in-flight requests to complete before shutting down, with a default timeout of 10 seconds. This feature is enabled via Spring Boot's `server.shutdown=graceful` and `spring.lifecycle.timeout-per-shutdown-phase=${GRACEFUL_SHUTDOWN_TIMEOUT:10s}` configuration. To adjust the timeout, you can set the `GRACEFUL_SHUTDOWN_TIMEOUT` environment variable (e.g., `30s`, `60s`, `2m`) or modify the settings in application.yml. In Kubernetes environments, ensure the Pod's `terminationGracePeriodSeconds` is greater than the configured timeout (recommend at least 10 seconds more).
#### 2.2.3.5 database-discovery (default for 3.0.0+)
743
747
744
-
> For version 2.1.0 and above
748
+
> Supported since 2.1.0, enabled by default since 3.0.0
745
749
746
750
Enable database-discovery to replace built-in eureka
747
751
748
752
Apollo supports the use of internal database table as registry, without relying on third-party registry.
749
753
750
-
1. Modify `config/application.properties` after decompression of `apollo-configservice-x.x.x-github.zip` and `apollo-adminservice-x.x.x-github.zip`, uncomment
751
-
```properties
752
-
#spring.profiles.active=github,database-discovery
753
-
```
754
+
1.`apollo-configservice` and `apollo-adminservice` packages built from the official release packages, Docker images, or `build.sh/build.bat` already enable `database-discovery` by default, so no extra change is required.
754
755
755
-
to
756
+
2. If you are upgrading an existing Eureka deployment and want to keep the old behavior, choose the rollback method based on how you deploy:
757
+
- Unpacked installation packages or containers at runtime: set `SPRING_PROFILES_ACTIVE=github`, or configure `spring.profiles.active=github` in `config/application.properties`
758
+
- Source rebuilds: change the build command from `-Dapollo_profile=github,database-discovery` back to `-Dapollo_profile=github`
756
759
757
-
```properties
758
-
spring.profiles.active=github,database-discovery
759
-
```
760
-
761
-
2. (optional) In multi-cluster deployments, if you want apollo client only read Config Service in the same cluster,
760
+
3. (optional) In multi-cluster deployments, if you want apollo client only read Config Service in the same cluster,
762
761
you can add a property in `config/application-github.properties` of the Config Service and Admin Service installation package
763
762
```properties
764
763
apollo.service.registry.cluster=same name with apollo Cluster
765
764
```
766
765
767
-
2. (optional) If you want to customize Config Service and Admin Service's uri for Client,
766
+
4. (optional) If you want to customize Config Service and Admin Service's uri for Client,
768
767
for example when deploying on the intranet,
769
768
if you don't want to expose the intranet ip,
770
769
you can add a property in `config/application-github.properties` of the Config Service and Admin Service installation package
@@ -778,6 +777,8 @@ apollo.service.registry.cluster=same name with apollo Cluster
778
777
779
778
Apollo version 1.7.0 starts uploading Docker images to [Docker Hub](https://hub.docker.com/u/apolloconfig) by default, which can be obtained by following these steps
780
779
780
+
> Note: Official `apollo-configservice` and `apollo-adminservice` images enable `database-discovery` by default, so you do not need to add an extra profile. If you want an upgraded legacy Eureka deployment to keep the old behavior, add `-e SPRING_PROFILES_ACTIVE=github` when starting the container.
781
+
781
782
#### 2.3.1.1 Apollo Config Service
782
783
783
784
##### 2.3.1.1.1 Get the image
@@ -1678,5 +1679,3 @@ Default is false. Assess total configuration size and adjust Config Service memo
1678
1679
> Ensure that the `app.id`、`apollo.cluster` of the configuration in the application is in the correct case when caching is enabled, otherwise it will not fetch the correct configuration, You can also refer to the `config-service.cache.key.ignore-case` configuration for compatibility processing.
1679
1680
1680
1681
> `config-service.incremental.change.enabled` configuration adjustment requires a restart of the config service to take effect
> 注3:如要调整服务的监听端口,可以修改scripts/startup.sh中的`SERVER_PORT`。另外apollo-configservice同时承担meta server职责,如果要修改端口,注意要同时ApolloConfigDB.ServerConfig表中的`eureka.service.url`配置项以及apollo-portal和apollo-client中的使用到的meta server信息,详见:[2.2.1.1.2.4 配置apollo-portal的meta service信息](#_221124-配置apollo-portal的meta-service信息)和[1.2.2 Apollo Meta Server](zh/client/java-sdk-user-guide#_122-apollo-meta-server)。
498
+
> 注3:如要调整服务的监听端口,可以修改scripts/startup.sh中的`SERVER_PORT`。另外apollo-configservice同时承担meta server职责,如果要修改端口,需要同步更新apollo-portal和apollo-client中的meta server信息,详见:[2.2.1.1.2.4 配置apollo-portal的meta service信息](#_221124-配置apollo-portal的meta-service信息)和[1.2.2 Apollo Meta Server](zh/client/java-sdk-user-guide#_122-apollo-meta-server)。如果当前仍使用内置Eureka,还需要同时更新ApolloConfigDB.ServerConfig表中的`eureka.service.url`配置项。
0 commit comments