long getSegmentSize() {
    return Math.min(getCapacityInBytes(), config.storeSegmentSizeInBytes);
  }
@return the capacity of a single segment just by config.
ambry-store/src/main/java/com/github/ambry/store/Log.java