GithubHelp home page GithubHelp logo

Comments (5)

Spoomer avatar Spoomer commented on June 26, 2024

Did you check the postgres documentation about max_connections?

from ferretdb.

peintune avatar peintune commented on June 26, 2024

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.

AlekSi avatar AlekSi commented on June 26, 2024

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.

peintune avatar peintune commented on June 26, 2024

@AlekSi

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.

image

log27017-3.log

from ferretdb.

AlekSi avatar AlekSi commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.