use of com.netflix.titus.runtime.FeatureFlagModule in project titus-control-plane by Netflix.
the class TitusMasterModule method configure.
@Override
protected void configure() {
// Configuration
bind(CellInfoResolver.class).to(ConfigurableCellInfoResolver.class);
// Titus supervisor
install(new SupervisorServiceModule());
install(new SupervisorEndpointModule());
install(new TitusEntitySanitizerModule());
// Feature flags
install(new FeatureFlagModule());
// Kubernetes
Preconditions.checkNotNull(mode, "Kube mode not set");
if (mode == Mode.KUBE) {
install(new KubeModule());
} else if (mode == Mode.EMBEDDED_KUBE) {
install(new KubeControllerModule());
install(new KubePodModule());
}
// Storage
install(new StoreModule());
// Service
install(new AuditModule());
install(new SchedulerModule());
install(new V3JobManagerModule());
install(new ContainerHealthServiceModule());
Multibinder.newSetBinder(binder(), ContainerHealthService.class).addBinding().to(AlwaysHealthyContainerHealthService.class);
install(new ManagementModule());
// REST/GRPC
bind(V3EndpointModule.V3_LOG_STORAGE_INFO).toInstance(EmptyLogStorageInfo.INSTANCE);
bind(ContextResolver.class).toInstance(EmptyContextResolver.INSTANCE);
if (enableREST) {
install(new GovernatorJerseySupportModule());
// This should be in JerseyModule, but overrides get broken if we do that (possibly Governator bug).
bind(HttpCallerIdResolver.class).to(ByRemoteAddressHttpCallerIdResolver.class);
bind(HostCallerIdResolver.class).to(NoOpHostCallerIdResolver.class);
install(new JerseyModule());
}
install(new JobCoordinatorAdmissionModule());
install(new MasterEndpointModule());
install(new HealthModule());
install(new V3EndpointModule());
install(new AutoScalingModule());
install(new LoadBalancerModule());
install(new EvictionServiceModule());
install(new EvictionEndpointModule());
}
use of com.netflix.titus.runtime.FeatureFlagModule in project titus-control-plane by Netflix.
the class TitusGatewayModule method configure.
@Override
protected void configure() {
bind(Archaius2ConfigurationLogger.class).asEagerSingleton();
bind(Registry.class).toInstance(new DefaultRegistry());
bind(SystemLogService.class).to(LoggingSystemLogService.class);
bind(SystemAbortListener.class).to(LoggingSystemAbortListener.class);
bind(Fabric8IOConnector.class).to(DefaultFabric8IOConnector.class).asEagerSingleton();
install(new ContainerEventBusModule());
install(new TitusContainerRegistryModule());
install(new TitusEntitySanitizerModule());
install(new TitusAdmissionModule());
install(new JobSecurityValidatorModule());
// Feature flags
install(new FeatureFlagModule());
install(new GatewayEndpointModule(enableREST));
install(new TitusMasterConnectorModule());
install(new JobManagerConnectorModule(JobEventPropagationUtil.CHECKPOINT_GATEWAY_CLIENT));
install(new JobManagerDataReplicationModule());
install(new EvictionConnectorModule());
install(new RelocationClientConnectorModule());
install(new RelocationDataReplicationModule());
bind(V3_LOG_STORAGE_INFO).toInstance(EmptyLogStorageInfo.INSTANCE);
install(new V3ServiceModule());
install(new StoreModule());
}
Aggregations