Skip to content

PostgreSQL extension to isolate background workers in other cgroups v2

License

Notifications You must be signed in to change notification settings

extio1/pg_isolate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pg_isolate

Installation

make install
make cgroup_init

Configuration

Extension will try to find pg_isolate.json file in desired PGDATA directory.
Config has following structure

{
    "example" : {
        "database": "postgres"
    },

    "example_administator" : {
        "database": "postgres",
        "user": "extio1"
    },

    "default" : {
    }
}
  • example - name of cgroup
  • Backend created for database and user will be placed into following cgroup
  • If default specified, backends that hasn't match to some cgroup will be places here

Launch

postgres -D $PGDATA -c shared_preload_libraries=pg_isolate

About

PostgreSQL extension to isolate background workers in other cgroups v2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published