Skip to content

Commit e0c3afc

Browse files
chore(plugin-server): Remove unused objectStorage (#42187)
1 parent b8e4a95 commit e0c3afc

File tree

4 files changed

+0
-92
lines changed

4 files changed

+0
-92
lines changed

plugin-server/src/config/config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,6 @@ export function getDefaultConfig(): PluginsServerConfig {
131131
CLICKHOUSE_HEATMAPS_KAFKA_TOPIC: KAFKA_CLICKHOUSE_HEATMAP_EVENTS,
132132
PERSON_INFO_CACHE_TTL: 5 * 60, // 5 min
133133
KAFKA_HEALTHCHECK_SECONDS: 20,
134-
OBJECT_STORAGE_ENABLED: true,
135-
OBJECT_STORAGE_ENDPOINT: 'http://localhost:19000',
136-
OBJECT_STORAGE_REGION: 'us-east-1',
137-
OBJECT_STORAGE_ACCESS_KEY_ID: 'object_storage_root_user',
138-
OBJECT_STORAGE_SECRET_ACCESS_KEY: 'object_storage_root_password',
139-
OBJECT_STORAGE_BUCKET: 'posthog',
140134
PLUGIN_SERVER_MODE: null,
141135
PLUGIN_SERVER_EVENTS_INGESTION_PIPELINE: null,
142136
PLUGIN_LOAD_SEQUENTIALLY: false,

plugin-server/src/types.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import { Celery } from './utils/db/celery'
3030
import { DB } from './utils/db/db'
3131
import { PostgresRouter } from './utils/db/postgres'
3232
import { GeoIPService } from './utils/geoip'
33-
import { ObjectStorage } from './utils/object_storage'
3433
import { PubSub } from './utils/pubsub'
3534
import { TeamManager } from './utils/team-manager'
3635
import { UUID } from './utils/utils'
@@ -371,12 +370,6 @@ export interface PluginsServerConfig extends CdpConfig, IngestionConsumerConfig,
371370
KAFKA_PARTITIONS_CONSUMED_CONCURRENTLY: number // (advanced) how many kafka partitions the plugin server should consume from concurrently
372371
PERSON_INFO_CACHE_TTL: number
373372
KAFKA_HEALTHCHECK_SECONDS: number
374-
OBJECT_STORAGE_ENABLED: boolean // Disables or enables the use of object storage. It will become mandatory to use object storage
375-
OBJECT_STORAGE_REGION: string // s3 region
376-
OBJECT_STORAGE_ENDPOINT: string // s3 endpoint
377-
OBJECT_STORAGE_ACCESS_KEY_ID: string
378-
OBJECT_STORAGE_SECRET_ACCESS_KEY: string
379-
OBJECT_STORAGE_BUCKET: string // the object storage bucket name
380373
PLUGIN_SERVER_MODE: PluginServerMode | null
381374
PLUGIN_SERVER_EVENTS_INGESTION_PIPELINE: string | null // TODO: shouldn't be a string probably
382375
PLUGIN_LOAD_SEQUENTIALLY: boolean // could help with reducing memory usage spikes on startup
@@ -515,7 +508,6 @@ export interface Hub extends PluginsServerConfig {
515508
cookielessRedisPool: GenericPool<Redis>
516509
kafka: Kafka
517510
kafkaProducer: KafkaProducerWrapper
518-
objectStorage?: ObjectStorage
519511
// currently enabled plugin status
520512
plugins: Map<PluginId, Plugin>
521513
pluginConfigs: Map<PluginConfigId, PluginConfig>

plugin-server/src/utils/db/hub.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import { ActionManagerCDP } from '../action-manager-cdp'
2929
import { isTestEnv } from '../env-utils'
3030
import { GeoIPService } from '../geoip'
3131
import { logger } from '../logger'
32-
import { getObjectStorage } from '../object_storage'
3332
import { PubSub } from '../pubsub'
3433
import { TeamManager } from '../team-manager'
3534
import { UUIDT } from '../utils'
@@ -107,15 +106,6 @@ export async function createHub(
107106
const cookielessRedisPool = createRedisPool(serverConfig, 'cookieless')
108107
logger.info('👍', `Cookieless Redis ready`)
109108

110-
logger.info('🤔', `Connecting to object storage...`)
111-
112-
const objectStorage = getObjectStorage(serverConfig)
113-
if (objectStorage) {
114-
logger.info('👍', 'Object storage ready')
115-
} else {
116-
logger.warn('🪣', `Object storage could not be created`)
117-
}
118-
119109
const db = new DB(
120110
postgres,
121111
postgresPersonMigration,
@@ -170,7 +160,6 @@ export async function createHub(
170160
cookielessRedisPool,
171161
kafka,
172162
kafkaProducer,
173-
objectStorage: objectStorage,
174163
groupTypeManager,
175164

176165
plugins: new Map(),

plugin-server/src/utils/object_storage.ts

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)