Interface ConfigServer
-
public interface ConfigServerThe API controllers use when communicating with config servers.- Author:
- Øyvind Grønnesby
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceConfigServer.PreparedApplication
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeactivate(DeploymentId deployment)ConfigServer.PreparedApplicationdeploy(DeploymentData deployment)voiddisableReindexing(DeploymentId deployment)voidenableReindexing(DeploymentId deployment)ProxyResponsegetApplicationPackageContent(DeploymentId deployment, String path, URI requestUri)Gets the contents of a file inside the current application package for a given deployment.com.yahoo.vespa.serviceview.bindings.ApplicationViewgetApplicationView(String tenantName, String applicationName, String instanceName, String environment, String region)List<String>getContentClusters(DeploymentId deployment)List<ClusterMetrics>getDeploymentMetrics(DeploymentId deployment)booleangetGlobalRotationStatus(com.yahoo.config.provision.zone.ZoneId zone)Get the status for an entire zone.EndpointStatusgetGlobalRotationStatus(DeploymentId deployment, String upstreamName)Get the endpoint status for an app in one zone.List<LoadBalancer>getLoadBalancers(com.yahoo.config.provision.ApplicationId application, com.yahoo.config.provision.zone.ZoneId zone)Get all load balancers for application in given zoneInputStreamgetLogs(DeploymentId deployment, Map<String,String> queryParameters)Gets the Vespa logs of the given deployment.List<ProtonMetrics>getProtonMetrics(DeploymentId deployment)QuotaUsagegetQuotaUsage(DeploymentId deploymentId)Get maximum resources consumedApplicationReindexinggetReindexing(DeploymentId deployment)Map<?,?>getServiceApiResponse(DeploymentId deployment, String serviceName, String restPath)StringgetServiceStatusPage(DeploymentId deployment, String serviceName, String node, String subPath)List<LogEntry>getTesterLog(DeploymentId deployment, long after)Gets log from tester nodeTesterCloud.StatusgetTesterStatus(DeploymentId deployment)Gets status for tester applicationOptional<TestReport>getTestReport(DeploymentId deployment)booleanisSuspended(DeploymentId deployment)booleanisTesterReady(DeploymentId deployment)Is tester node readyList<com.yahoo.vespa.flags.json.FlagData>listFlagData(com.yahoo.config.provision.zone.ZoneId zone)List all flag data for the given zoneNodeRepositorynodeRepository()The node repository on this config servervoidreindex(DeploymentId deployment, List<String> clusterNames, List<String> documentTypes, boolean indexedOnly, Double speed)voidrestart(DeploymentId deployment, RestartFilter restartFilter)Optional<ServiceConvergence>serviceConvergence(DeploymentId deployment, Optional<com.yahoo.component.Version> version)Get service convergence status for given deployment, using the nodes in the model at the given Vespa version.voidsetGlobalRotationStatus(com.yahoo.config.provision.zone.ZoneId zone, boolean in)Set the new status for an entire zone.voidsetGlobalRotationStatus(DeploymentId deployment, List<String> upstreamNames, EndpointStatus status)Set new status for a endpoint of a single deployment.voidsetSuspension(DeploymentId deploymentId, boolean suspend)Sets suspension status — whether application node operations are orchestrated — for the given deployment.StringstartTests(DeploymentId deployment, TesterCloud.Suite suite, byte[] config)Starts tests on tester nodeStringvalidateSecretStore(DeploymentId deploymentId, TenantSecretStore tenantSecretStore, String region, String parameterName)Validates secret store configuration.
-
-
-
Method Detail
-
deploy
ConfigServer.PreparedApplication deploy(DeploymentData deployment)
-
reindex
void reindex(DeploymentId deployment, List<String> clusterNames, List<String> documentTypes, boolean indexedOnly, Double speed)
-
getReindexing
ApplicationReindexing getReindexing(DeploymentId deployment)
-
disableReindexing
void disableReindexing(DeploymentId deployment)
-
enableReindexing
void enableReindexing(DeploymentId deployment)
-
restart
void restart(DeploymentId deployment, RestartFilter restartFilter)
-
deactivate
void deactivate(DeploymentId deployment)
-
isSuspended
boolean isSuspended(DeploymentId deployment)
-
getApplicationView
com.yahoo.vespa.serviceview.bindings.ApplicationView getApplicationView(String tenantName, String applicationName, String instanceName, String environment, String region)
-
getServiceApiResponse
Map<?,?> getServiceApiResponse(DeploymentId deployment, String serviceName, String restPath)
-
getServiceStatusPage
String getServiceStatusPage(DeploymentId deployment, String serviceName, String node, String subPath)
-
getLogs
InputStream getLogs(DeploymentId deployment, Map<String,String> queryParameters)
Gets the Vespa logs of the given deployment. If the "from" and/or "to" query parameters are present, they are read as millis since EPOCH, and used to limit the time window for which log entries are gathered. This is not exact, and will return too much. If the "hostname" query parameter is present, it limits the entries to be from that host.
-
getApplicationPackageContent
ProxyResponse getApplicationPackageContent(DeploymentId deployment, String path, URI requestUri)
Gets the contents of a file inside the current application package for a given deployment. If the path is to a directly, a JSON list with URLs to contents is returned.- Parameters:
deployment- deployment to get application package content forpath- path within package to getrequestUri- request URI on the controller, used to rewrite paths in response from config server
-
getDeploymentMetrics
List<ClusterMetrics> getDeploymentMetrics(DeploymentId deployment)
-
getProtonMetrics
List<ProtonMetrics> getProtonMetrics(DeploymentId deployment)
-
getContentClusters
List<String> getContentClusters(DeploymentId deployment)
-
setGlobalRotationStatus
void setGlobalRotationStatus(DeploymentId deployment, List<String> upstreamNames, EndpointStatus status)
Set new status for a endpoint of a single deployment.- Parameters:
deployment- The deployment to changeupstreamNames- The upstream names to modify. Upstream name is a unique identifier for the routing status of a cluster in a deploymentstatus- The new status
-
setGlobalRotationStatus
void setGlobalRotationStatus(com.yahoo.config.provision.zone.ZoneId zone, boolean in)Set the new status for an entire zone.- Parameters:
zone- the zonein- whether to set zone status to 'in' or 'out'
-
getGlobalRotationStatus
EndpointStatus getGlobalRotationStatus(DeploymentId deployment, String upstreamName)
Get the endpoint status for an app in one zone.- Parameters:
deployment- The deployment to changeupstreamName- The upstream to query. Upstream name is a unique identifier for the global route of a deployment in the shared routing layer- Returns:
- The endpoint status with metadata
-
getGlobalRotationStatus
boolean getGlobalRotationStatus(com.yahoo.config.provision.zone.ZoneId zone)
Get the status for an entire zone.- Parameters:
zone- the zone- Returns:
- whether the zone status is 'in'
-
nodeRepository
NodeRepository nodeRepository()
The node repository on this config server
-
serviceConvergence
Optional<ServiceConvergence> serviceConvergence(DeploymentId deployment, Optional<com.yahoo.component.Version> version)
Get service convergence status for given deployment, using the nodes in the model at the given Vespa version.
-
getLoadBalancers
List<LoadBalancer> getLoadBalancers(com.yahoo.config.provision.ApplicationId application, com.yahoo.config.provision.zone.ZoneId zone)
Get all load balancers for application in given zone
-
listFlagData
List<com.yahoo.vespa.flags.json.FlagData> listFlagData(com.yahoo.config.provision.zone.ZoneId zone)
List all flag data for the given zone
-
getTesterStatus
TesterCloud.Status getTesterStatus(DeploymentId deployment)
Gets status for tester application
-
startTests
String startTests(DeploymentId deployment, TesterCloud.Suite suite, byte[] config)
Starts tests on tester node
-
getTesterLog
List<LogEntry> getTesterLog(DeploymentId deployment, long after)
Gets log from tester node
-
isTesterReady
boolean isTesterReady(DeploymentId deployment)
Is tester node ready
-
getTestReport
Optional<TestReport> getTestReport(DeploymentId deployment)
-
getQuotaUsage
QuotaUsage getQuotaUsage(DeploymentId deploymentId)
Get maximum resources consumed
-
setSuspension
void setSuspension(DeploymentId deploymentId, boolean suspend)
Sets suspension status — whether application node operations are orchestrated — for the given deployment.
-
validateSecretStore
String validateSecretStore(DeploymentId deploymentId, TenantSecretStore tenantSecretStore, String region, String parameterName)
Validates secret store configuration.
-
-