Search in sources :

Example 1 with StorMemfilepersistenceConfig

use of com.yahoo.vespa.config.storage.StorMemfilepersistenceConfig in project vespa by vespa-engine.

the class GenericConfigTest method config_override_on_root_is_visible_on_content_cluster.

@Test
public void config_override_on_root_is_visible_on_content_cluster() throws Exception {
    ContentCluster cluster = model.getContentClusters().get("storage");
    StorMemfilepersistenceConfig config = model.getConfig(StorMemfilepersistenceConfig.class, cluster.getConfigId());
    assertThat(config.disk_full_factor(), is(0.001));
}
Also used : StorMemfilepersistenceConfig(com.yahoo.vespa.config.storage.StorMemfilepersistenceConfig) ContentCluster(com.yahoo.vespa.model.content.cluster.ContentCluster) Test(org.junit.Test)

Example 2 with StorMemfilepersistenceConfig

use of com.yahoo.vespa.config.storage.StorMemfilepersistenceConfig in project vespa by vespa-engine.

the class VDSProviderTest method testTuning.

@Test
public void testTuning() {
    StorMemfilepersistenceConfig.Builder builder = new StorMemfilepersistenceConfig.Builder();
    parse(" <vds>\n" + "          <tuning>\n" + "            <disk-full-ratio>0.93</disk-full-ratio>\n" + "            <cache-size>1G</cache-size>\n" + "          </tuning>" + "</vds>").getConfig(builder);
    StorMemfilepersistenceConfig config = new StorMemfilepersistenceConfig(builder);
    assertEquals(0.93, config.disk_full_factor(), 0.01);
    assertEquals(1024 * 1024 * 1024, config.cache_size());
}
Also used : StorMemfilepersistenceConfig(com.yahoo.vespa.config.storage.StorMemfilepersistenceConfig) Test(org.junit.Test)

Example 3 with StorMemfilepersistenceConfig

use of com.yahoo.vespa.config.storage.StorMemfilepersistenceConfig in project vespa by vespa-engine.

the class GenericConfigTest method config_override_on_root_is_visible_on_storage_cluster.

@Test
public void config_override_on_root_is_visible_on_storage_cluster() throws Exception {
    StorageCluster cluster = model.getContentClusters().get("storage").getStorageNodes();
    StorMemfilepersistenceConfig config = model.getConfig(StorMemfilepersistenceConfig.class, cluster.getConfigId());
    assertThat(config.disk_full_factor(), is(0.001));
}
Also used : StorageCluster(com.yahoo.vespa.model.content.storagecluster.StorageCluster) StorMemfilepersistenceConfig(com.yahoo.vespa.config.storage.StorMemfilepersistenceConfig) Test(org.junit.Test)

Aggregations

StorMemfilepersistenceConfig (com.yahoo.vespa.config.storage.StorMemfilepersistenceConfig)3 Test (org.junit.Test)3 ContentCluster (com.yahoo.vespa.model.content.cluster.ContentCluster)1 StorageCluster (com.yahoo.vespa.model.content.storagecluster.StorageCluster)1