If the optimization fails due to OutOfMemory exceptions, you can increase the maxSegments value and try step 2 again. If the optimization was successful, you can also try reducing the maxSegments and repeating step 2 again to try to further optimize the core on a second pass.
Consult with Carbon Black Technical Support before manually optimizing cores
Cores will optimize quicker if the other EDR services have been stopped and only cb-solr is running
The default core segment count after optimization is 10
Cores larger than 200GB might not be able to be optimized down to 10 segments due to memory constraints
The "writer" core is generally not optimized and expected to have larger than 10 segments before rollover
Larger segment counts will affect search performance. Ideally the segments will be as small as possible; cores should never be optimized below 10 segments
Cores should automatically be optimized. Manual optimization should only be done if performance issues are present after optimization failed