@Test
    void testResourceLimitsForSmallNodes() throws Exception {
        var services = """
                <services>
                  <content version="1.0" id="foo">
                    <redundancy>1</redundancy>
                    <documents/>
                    <nodes count='1'>
                      <resources vcpu='1' memory='8Gb' />
                    </nodes>
                  </content>
                </services>
                """;
        var provisioner = new InMemoryProvisioner(4, new NodeResources(1, 8, 50, 0.3), false);
        var properties = new TestProperties()
                .setHostedVespa(true)
                .setMultitenant(true)
                .setResourceLimitDisk(0.66);
        var deployState = new DeployState.Builder()
                .properties(properties)
                .modelHostProvisioner(provisioner)
                .applicationPackage(new MockApplicationPackage.Builder().withServices(services).withSchema(MockApplicationPackage.MUSIC_SCHEMA).build())
                .endpoints(Set.of(new ContainerEndpoint("foo.indexing", ApplicationClusterEndpoint.Scope.zone, List.of("foo.indexing"))))
                .build();
        VespaModel model = new VespaModel(new NullConfigModelRegistry(), deployState);

        var builder = new FleetcontrollerConfig.Builder();
        ContentCluster contentCluster = model.getContentClusters().get("foo");
        contentCluster.getClusterControllerConfig().getConfig(builder);
        var config = builder.build();
        assertEquals(0.66, config.cluster_feed_block_limit().get("disk"), 0.001);
        // Memory resource limit for small nodes is 0.75
        assertEquals(0.75, config.cluster_feed_block_limit().get("memory"), 0.001);

        // Resource limits for content cluster should be changed based on new values above
        var protonConfigBuilder = new ProtonConfig.Builder();
        model.getConfig(protonConfigBuilder, "foo/search/cluster.foo");
        assertEquals(0.864, protonConfigBuilder.build().writefilter().disklimit(), 0.001);
        assertEquals(0.875, protonConfigBuilder.build().writefilter().memorylimit(), 0.001);

        // Resource limits for content nodes should be changed based on new values above
        // Tested since values can be set for both clusters and nodes in general
        var protonConfigBuilder2 = new ProtonConfig.Builder();
        contentCluster.getSearch().getSearchNodes().get(0).getConfig(protonConfigBuilder2);
        var config2 = protonConfigBuilder2.build();
        assertEquals(0, config2.distributionkey());
        assertEquals(0.864, config2.writefilter().disklimit(), 0.001);
        assertEquals(0.875, config2.writefilter().memorylimit(), 0.001);
    }
Here there is no good choice.
config-model/src/test/java/com/yahoo/vespa/model/content/ContentClusterTest.java