Skip to content

Commit

Permalink
feat: Adds the compactor for the all target (#2875)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriltovena authored Dec 21, 2023
1 parent e6b1693 commit ba25f23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/phlare/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ func (f *Phlare) initQueryScheduler() (services.Service, error) {
func (f *Phlare) initCompactor() (serv services.Service, err error) {
f.Cfg.Compactor.ShardingRing.Common.ListenPort = f.Cfg.Server.HTTPListenPort

if f.storageBucket == nil {
return nil, nil
}

f.Compactor, err = compactor.NewMultitenantCompactor(f.Cfg.Compactor, f.storageBucket, f.Overrides, log.With(f.logger, "component", "compactor"), f.reg)
if err != nil {
return
Expand Down
2 changes: 1 addition & 1 deletion pkg/phlare/phlare.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (f *Phlare) setupModuleManager() error {

// Add dependencies
deps := map[string][]string{
All: {Ingester, Distributor, QueryScheduler, QueryFrontend, Querier, StoreGateway, Admin, TenantSettings},
All: {Ingester, Distributor, QueryScheduler, QueryFrontend, Querier, StoreGateway, Admin, TenantSettings, Compactor},

Server: {GRPCGateway},
API: {Server},
Expand Down

0 comments on commit ba25f23

Please sign in to comment.