Comments (5)
Did you check the postgres documentation about max_connections?
from ferretdb.
Did you check the postgres documentation about max_connections?
Hi, thanks for your reply.
Yes ,I have set the postgres max_connections to 10000, and I checked the remain connections in postgres, 9973 connections free. I login to postgresql and query something , it executed quickly. meanwhile, I login use mongsh through ferretdb , query something, it run slowly. That means, postgres is running well, the ferretdb has performance issue.
ferretdb=# select max_conn-now_conn as resi_conn from (select setting::int8 as max_conn,(select count(*) from pg_stat_activity) as now_conn from pg_settings where name = 'max_connections') t;
resi_conn
9973
(1 row)
Is there any way tuning the ferrendb parameters to make ferrentdb have a good performance? Or, is there any way to deploy multi-ferretdb architecture ?
from ferretdb.
Please try running FerretDB with debug logs. There should be messages about connection establishment, etc. It is hard to understand what is going on without logs.
from ferretdb.
Ok, here is the debug logs, and I found the cpu usage is very high of ferretdb, I am running ferretdb by docker, and the docker is running on a 8 core cpus server.
from ferretdb.
Please download http://127.0.0.1:8088/debug/pprof/profile?seconds=30
(address is configured by --debug-addr
/ FERRETDB_DEBUG_ADDR
) and attach the file
from ferretdb.
Related Issues (20)
- batch-size error when using embbeded ferretdb package HOT 1
- Remove localhost exception for new auth HOT 1
- Implement `ferretdb --setup` flags
- Website is down. HOT 3
- Implement `FERRETDB_USERNAME` and `FERRETDB_PASSWORD` for Docker images
- Implement Docker's HEALTHCHECK
- the problem with BatchSize is in registry.TestOpts{} when using as embedded HOT 1
- Support UniFi Controller HOT 2
- mongodump/monogorestore/monoimport not works for ferretdb HOT 3
- Add restart: on-failure to postgres container as well HOT 3
- `task env-data` should setup `All` collection too
- Provide Kubernetes probes
- Setup Otel exporter for FerretDB
- Add "mongo" slog format
- Implement slow log
- Support `OP_COMPRESSED` wire opcode
- Remove `PLAIN` support for new authentication
- Add `TestMain` to each integration test package
- Fix speculative authentication
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ferretdb.