Skip to content

Dynamic data sources occasionally cause too many Postgres connections #889

@Jannis

Description

@Jannis

We restart subgraph block streams whenever new data sources were added in a block. Each stream creates a new chain head update listener. We try to shut the previous stream and update listener down ASAP but the connections don't seem to be cleaned up fast enough in some occasions.

This can be fixed by using a shared chain head update listener that all subgraphs on the node consume; this would only require a single extra connection for the entire node.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions