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));
}
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());
}
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));
}
Aggregations