From 4638bb3363fe0817d566b7fa53b770d591d1d810 Mon Sep 17 00:00:00 2001 From: Adam Hendel Date: Wed, 25 Sep 2024 09:56:41 -0500 Subject: [PATCH] remove search stack (#976) --- tembo-stacks/src/stacks/mod.rs | 3 - tembo-stacks/src/stacks/specs/search.yaml | 69 ----------------------- tembo-stacks/src/stacks/types.rs | 6 -- 3 files changed, 78 deletions(-) delete mode 100644 tembo-stacks/src/stacks/specs/search.yaml diff --git a/tembo-stacks/src/stacks/mod.rs b/tembo-stacks/src/stacks/mod.rs index bb0ee3a1f..2e3921ac8 100644 --- a/tembo-stacks/src/stacks/mod.rs +++ b/tembo-stacks/src/stacks/mod.rs @@ -6,8 +6,6 @@ use crate::stacks::types::{Stack, StackType}; use lazy_static::lazy_static; lazy_static! { - pub static ref SEARCH: Stack = - serde_yaml::from_str(include_str!("specs/search.yaml")).expect("search.yaml not found"); pub static ref ANALYTICS: Stack = serde_yaml::from_str(include_str!("specs/analytics.yaml")) .expect("analytics.yaml not found"); pub static ref API: Stack = @@ -42,7 +40,6 @@ lazy_static! { pub fn get_stack(entity: StackType) -> Stack { match entity { - StackType::Search => SEARCH.clone(), StackType::Analytics => ANALYTICS.clone(), StackType::API => API.clone(), StackType::DataWarehouse => DATAWAREHOUSE.clone(), diff --git a/tembo-stacks/src/stacks/specs/search.yaml b/tembo-stacks/src/stacks/specs/search.yaml deleted file mode 100644 index 5f386193d..000000000 --- a/tembo-stacks/src/stacks/specs/search.yaml +++ /dev/null @@ -1,69 +0,0 @@ -name: Search -description: A Postgres instance that enables full text search over heap tables using the BM25 algorithm. -repository: "quay.io/tembo" -organization: tembo -images: - 14: "standard-cnpg:14-5120dd1" - 15: "standard-cnpg:15-5120dd1" - 16: "standard-cnpg:16-5120dd1" -stack_version: 0.1.0 -postgres_config_engine: standard -postgres_config: - - name: autovacuum_vacuum_cost_limit - value: -1 - - name: autovacuum_vacuum_scale_factor - value: 0.05 - - name: autovacuum_vacuum_insert_scale_factor - value: 0.05 - - name: autovacuum_analyze_scale_factor - value: 0.05 - - name: checkpoint_timeout - value: 10min - - name: track_activity_query_size - value: 2048 - - name: wal_compression - value: 'on' - - name: track_io_timing - value: 'on' - - name: log_min_duration_statement # https://www.postgresql.org/docs/15/runtime-config-logging.html - value: 1000 - - name: auto_explain.log_min_duration - value: 1000ms - - name: statement_timeout - value: 86400000 - - name: pg_stat_statements.track - value: top - - name: shared_preload_libraries - value: pg_stat_statements,auto_explain,pg_search - - name: random_page_cost - value: 1.1 -trunk_installs: - - name: pg_stat_statements - version: 1.10.0 - - name: pg_search - version: 0.10.0 - - name: pg_cron - version: 1.6.2 - - name: pgvector - version: 0.7.4 -extensions: - - name: pg_stat_statements - locations: - - database: postgres - enabled: true - version: 1.10.0 - - name: pg_search - locations: - - database: postgres - enabled: true - version: 0.10.0 - - name: vector - locations: - - database: postgres - enabled: true - version: 0.7.4 - - name: pg_cron - locations: - - database: postgres - enabled: true - version: 1.6.2 diff --git a/tembo-stacks/src/stacks/types.rs b/tembo-stacks/src/stacks/types.rs index 92a8257f4..2807305c7 100644 --- a/tembo-stacks/src/stacks/types.rs +++ b/tembo-stacks/src/stacks/types.rs @@ -28,7 +28,6 @@ use utoipa::ToSchema; strum_macros::Display, )] pub enum StackType { - Search, Analytics, API, DataWarehouse, @@ -51,7 +50,6 @@ impl std::str::FromStr for StackType { fn from_str(value: &str) -> Result { match value { - "Search" => Ok(StackType::Search), "Analytics" => Ok(StackType::Analytics), "API" => Ok(StackType::API), "DataWarehouse" => Ok(StackType::DataWarehouse), @@ -74,7 +72,6 @@ impl std::str::FromStr for StackType { impl StackType { pub fn as_str(&self) -> &str { match self { - StackType::Search => "Search", StackType::Analytics => "Analytics", StackType::API => "API", StackType::DataWarehouse => "DataWarehouse", @@ -300,9 +297,6 @@ mod tests { fn test_all_stack_deserialization() { for stack in StackType::iter() { match stack { - StackType::Search => { - get_stack(StackType::Search); - } StackType::Analytics => { get_stack(StackType::Analytics); }