aboutsummaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2023-03-06 10:48:32 +0100
committerHarald Musum <musum@yahooinc.com>2023-03-06 10:48:32 +0100
commit572cf57ec6eea9eadf771eb869db462cf4b3470f (patch)
tree5ae9b2278664113b40ac3e2f71775d3655c0dfcf /configserver
parente22467e6500b212a611827659d79b680f1b7f805 (diff)
Log less or at a lower level
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/ConfigServerBootstrap.java26
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/rpc/RpcServer.java2
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/tenant/TenantRepository.java2
3 files changed, 17 insertions, 13 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/ConfigServerBootstrap.java b/configserver/src/main/java/com/yahoo/vespa/config/server/ConfigServerBootstrap.java
index b811fe21310..885aedb0cbe 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/ConfigServerBootstrap.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/ConfigServerBootstrap.java
@@ -3,6 +3,7 @@ package com.yahoo.vespa.config.server;
import com.yahoo.cloud.config.ConfigserverConfig;
import com.yahoo.component.AbstractComponent;
+import com.yahoo.component.Version;
import com.yahoo.component.annotation.Inject;
import com.yahoo.concurrent.DaemonThreadFactory;
import com.yahoo.config.provision.ApplicationId;
@@ -127,12 +128,13 @@ public class ConfigServerBootstrap extends AbstractComponent implements Runnable
public void start() {
startRpcServerWithFileDistribution(); // No config requests allowed yet, will be allowed after bootstrapping done
if (versionState.isUpgraded()) {
- log.log(Level.INFO, "Config server upgrading from " + versionState.storedVersion() + " to "
- + versionState.currentVersion() + ". Redeploying all applications");
+ if (versionState.storedVersion() != Version.emptyVersion)
+ log.log(Level.INFO, "Config server upgrading from " + versionState.storedVersion() + " to "
+ + versionState.currentVersion() + ". Redeploying all applications");
try {
redeployAllApplications();
versionState.saveNewVersion();
- log.log(Level.INFO, "All applications redeployed successfully");
+ log.log(Level.FINE, "All applications redeployed successfully");
} catch (Exception e) {
log.log(Level.SEVERE, "Redeployment of applications failed", e);
redeployingApplicationsFailed();
@@ -217,14 +219,16 @@ public class ConfigServerBootstrap extends AbstractComponent implements Runnable
new DaemonThreadFactory("redeploy-apps-"));
// Keep track of deployment status per application
Map<ApplicationId, Future<?>> deployments = new HashMap<>();
- log.log(Level.INFO, () -> "Redeploying " + applicationIds.size() + " apps " + applicationIds + " with " +
- configserverConfig.numRedeploymentThreads() + " threads");
- applicationIds.forEach(appId -> deployments.put(appId, executor.submit(() -> {
- log.log(Level.INFO, () -> "Starting redeployment of " + appId);
- applicationRepository.deployFromLocalActive(appId, true /* bootstrap */)
- .ifPresent(Deployment::activate);
- log.log(Level.INFO, () -> appId + " redeployed");
- })));
+ if (applicationIds.size() > 0) {
+ log.log(Level.INFO, () -> "Redeploying " + applicationIds.size() + " apps " + applicationIds + " with " +
+ configserverConfig.numRedeploymentThreads() + " threads");
+ applicationIds.forEach(appId -> deployments.put(appId, executor.submit(() -> {
+ log.log(Level.INFO, () -> "Starting redeployment of " + appId);
+ applicationRepository.deployFromLocalActive(appId, true /* bootstrap */)
+ .ifPresent(Deployment::activate);
+ log.log(Level.INFO, () -> appId + " redeployed");
+ })));
+ }
List<ApplicationId> failedDeployments = checkDeployments(deployments);
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/rpc/RpcServer.java b/configserver/src/main/java/com/yahoo/vespa/config/server/rpc/RpcServer.java
index 7a1b2d2aeef..eee7d6ec63d 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/rpc/RpcServer.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/rpc/RpcServer.java
@@ -184,7 +184,7 @@ public class RpcServer implements Runnable, ConfigActivationListener, TenantList
@Override
public void run() {
- log.log(Level.INFO, "Rpc server will listen on port " + spec.port());
+ log.log(Level.FINE, "Rpc server will listen on port " + spec.port());
try {
Acceptor acceptor = supervisor.listen(spec);
isRunning = true;
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/tenant/TenantRepository.java b/configserver/src/main/java/com/yahoo/vespa/config/server/tenant/TenantRepository.java
index 4833a62aa37..ba09b3de365 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/tenant/TenantRepository.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/tenant/TenantRepository.java
@@ -372,7 +372,7 @@ public class TenantRepository {
modelFactoryRegistry,
configDefinitionRepo,
zookeeperServerConfig.juteMaxBuffer());
- log.log(Level.INFO, "Adding tenant '" + tenantName + "'" + ", created " + created +
+ log.log(Level.FINE, "Adding tenant '" + tenantName + "'" + ", created " + created +
". Bootstrapping in " + Duration.between(start, clock.instant()));
Tenant tenant = new Tenant(tenantName, sessionRepository, applicationRepo, created);
createAndWriteTenantMetaData(tenant);