You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently running two servers: one for a TON archive node and another dedicated to indexing. The index server hosts PostgreSQL and an API, where we use workers to gather chaindata from the archive node.
The issue we’re facing is that the data has grown to almost 1TB, and the query time for the /api/v3/masterchainInfo method is extremely long. Even though we’ve set the timeout to 50 seconds, sometimes it just barely manages to respond after 40 seconds, but now it’s not responding within the timeout at all.
There doesn’t seem to be any connection overload. Even after removing Redis, the same error occurs.
Our DB server isn’t underpowered, so I’m not sure why the DB queries are almost stalling. Could you help us figure out what’s causing this issue?
We’re running it with Docker, and we’ve increased resource usage with the following configuration.
@vataops 안녕하세요. !!
저도 같은 상황을 겪었습니다. 전 개인적으로 우선 DB 인덱스를 추가했습니다.
한번 해보실래요 ?? 물론 이게 답은 아닐겁니다...
CREATE INDEX CONCURRENTLY mc_block_seq_index ON transactions (mc_block_seqno);
CREATE INDEX CONCURRENTLY messages_index_1 ON messages (msg_hash, direction);
CREATE INDEX CONCURRENTLY latest_account_states_index ON latest_account_states (account);
Postgres DB server spec
We are currently running two servers: one for a TON archive node and another dedicated to indexing. The index server hosts PostgreSQL and an API, where we use workers to gather chaindata from the archive node.
The issue we’re facing is that the data has grown to almost 1TB, and the query time for the /api/v3/masterchainInfo method is extremely long. Even though we’ve set the timeout to 50 seconds, sometimes it just barely manages to respond after 40 seconds, but now it’s not responding within the timeout at all.
There doesn’t seem to be any connection overload. Even after removing Redis, the same error occurs.
Our DB server isn’t underpowered, so I’m not sure why the DB queries are almost stalling. Could you help us figure out what’s causing this issue?
We’re running it with Docker, and we’ve increased resource usage with the following configuration.
The text was updated successfully, but these errors were encountered: