Class InstanceAssignmentConfigUtils


  • public class InstanceAssignmentConfigUtils
    extends Object
    • Method Detail

      • shouldRelocateCompletedSegments

        public static boolean shouldRelocateCompletedSegments​(TableConfig tableConfig)
        Returns whether the COMPLETED segments should be relocated (offloaded from CONSUMING instances to COMPLETED instances) for a LLC real-time table based on the given table config.

        COMPLETED segments should be relocated iff the COMPLETED instance assignment is configured or (for backward-compatibility) COMPLETED server tag is overridden to be different from the CONSUMING server tag.

      • allowInstanceAssignment

        public static boolean allowInstanceAssignment​(TableConfig tableConfig,
                                                      InstancePartitionsType instancePartitionsType)
        Returns whether the instance assignment is allowed for the given table config and instance partitions type.