@Test
    public void in_place_resource_decrease() {
        addParentHosts(30, new NodeResources(10, 100, 10000, 8, fast, local));

        var largeResources = new NodeResources(6, 64, 8000, 1);
        new PrepareHelper(tester, app).prepare(content1, 12, 1, largeResources).activate();
        assertSizeAndResources(content1, 12, largeResources.with(local));

        var smallerResources = new NodeResources(6, 48, 5000, 1);
        new PrepareHelper(tester, app).prepare(content1, 12, 1, smallerResources).activate();
        assertSizeAndResources(content1, 12, smallerResources.with(local));
        assertEquals(0, listCluster(content1).retired().size());
    }
Node resources can be increased in-place if
 1. No change to topology
 2. No reduction to cluster size
 3. There is enough spare capacity on host

Node resources can be decreased in-place if
 1. No change to topology
 2. No reduction to cluster size
 3. For content/combined nodes: No increase to cluster size

Node resources are increased if at least one of the components (vcpu, memory, disk, bandwidth) is increased.

@author freva
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/provisioning/InPlaceResizeProvisionTest.java