Justen Walker
02/20/2023, 4:05 PMJusten Walker
02/20/2023, 4:06 PMJusten Walker
02/20/2023, 4:07 PMJusten Walker
02/20/2023, 4:19 PMPierre CORBEL
02/20/2023, 5:25 PMJusten Walker
02/20/2023, 5:42 PMairbyte=> explain select id from workspace limit 1;
QUERY PLAN
------------------------------------------------------------------
Limit (cost=0.00..0.26 rows=1 width=16)
-> Seq Scan on workspace (cost=0.00..10.40 rows=40 width=16)Justen Walker
02/20/2023, 5:43 PMSELECT 1 is enough
airbyte=> explain select 1;
QUERY PLAN
------------------------------------------
Result (cost=0.00..0.01 rows=1 width=4)
(1 row)Justen Walker
02/21/2023, 12:15 AMSELECT id FROM workspace LIMIT 1 to SELECT 1 in io.airbyte.config.persistence.ConfigRepository be a welcome change? Is there some context about this I'm missing?Nataly Merezhuk (Airbyte)
02/21/2023, 4:35 PMJusten Walker
02/21/2023, 4:46 PMJusten Walker
02/21/2023, 4:48 PMdatabase.query(ctx -> ctx.select(WORKSPACE.ID).from(WORKSPACE).limit(1).fetch()).stream().count();
with
database.query(ctx -> ctx.fetch("SELECT 1")).stream().count();Justen Walker
02/27/2023, 7:23 PM/api/v1/health so I needed to remove readiness/liveness checks from the webapp as wellJusten Walker
02/27/2023, 10:15 PMJusten Walker
02/27/2023, 10:16 PMJusten Walker
02/27/2023, 10:17 PMJusten Walker
02/27/2023, 10:19 PMserver component; instead of even doing SELECT 1 the health handler should simply return 200 OK . for backwards compatibility maybe provide a /api/v1/healthz endpoint that does this
• In the webapp component; probably just hit / to see if nginx is up; or maybe add a new location like /healthz that just returns 200 OKJusten Walker
02/27/2023, 10:21 PMAvery Yip
03/23/2023, 4:59 PMJusten Walker
03/23/2023, 5:03 PMdb.m6g.xlarge But I don't think it should actually need to be that big : I suspect the latency is some problem closer to the server / airbyte components.Justen Walker
03/23/2023, 5:04 PMAvery Yip
03/23/2023, 5:16 PMAvery Yip
03/23/2023, 5:19 PMairbyte-server just freezes after it runs for a certain amount of time. We don’t have monitoring in place but we’ve seen the memory usage go all the way up to 6gb (current image from kubectl top pods). Unsure if it’s a memory leak.