Search in sources :

Example 11 with FleetcontrollerConfig

use of com.yahoo.vespa.config.content.FleetcontrollerConfig in project vespa by vespa-engine.

the class StorageModelTestCase method testIndexGreaterThanNumNodes.

@Test
public void testIndexGreaterThanNumNodes() throws Exception {
    VespaModel vespaModel = createModel("src/test/cfg/storage/app_index_higher_than_num_nodes");
    // Test fleet controller config
    FleetcontrollerConfig fleetController1Config = new FleetcontrollerConfig((FleetcontrollerConfig.Builder) vespaModel.getConfig(new FleetcontrollerConfig.Builder(), "content/fleetcontroller"));
    assertEquals(60000, fleetController1Config.storage_transition_time());
    assertEquals(8, fleetController1Config.ideal_distribution_bits());
}
Also used : VespaModel(com.yahoo.vespa.model.VespaModel) FleetcontrollerConfig(com.yahoo.vespa.config.content.FleetcontrollerConfig) Test(org.junit.Test)

Aggregations

FleetcontrollerConfig (com.yahoo.vespa.config.content.FleetcontrollerConfig)11 Test (org.junit.Test)9 VespaModel (com.yahoo.vespa.model.VespaModel)4 DomBuilderTest (com.yahoo.config.model.builder.xml.test.DomBuilderTest)3 ContentClusterBuilder (com.yahoo.vespa.model.content.utils.ContentClusterBuilder)2 SearchDefinitionBuilder (com.yahoo.vespa.model.content.utils.SearchDefinitionBuilder)2 SlobroksConfig (com.yahoo.cloud.config.SlobroksConfig)1 ZookeepersConfig (com.yahoo.cloud.config.ZookeepersConfig)1 Metric (com.yahoo.jdisc.Metric)1 StorDistributionConfig (com.yahoo.vespa.config.content.StorDistributionConfig)1 StorDistributormanagerConfig (com.yahoo.vespa.config.content.core.StorDistributormanagerConfig)1 ContentCluster (com.yahoo.vespa.model.content.cluster.ContentCluster)1 Map (java.util.Map)1