Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
c77ee12f
Verified
Commit
c77ee12f
authored
5 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
psql: add simple connect tutorial and deployment instructions
parent
c5efa952
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsa/howto/postgresql.mdwn
+35
-1
35 additions, 1 deletion
tsa/howto/postgresql.mdwn
with
35 additions
and
1 deletion
tsa/howto/postgresql.mdwn
+
35
−
1
View file @
c77ee12f
[[!toc levels=3]]
[PostgreSQL](https://www.postgresql.org/) is an advanced database server that is robust and
fast, although possibly less well-known and popular than it's eternal
rival in the free software world, MySQL.
Tutorial
========
Those are quick reminders on easy things to do in a cluster.
Connecting
----------
Our PostgreSQL setup is fairly standard so connecting to the database
is like any other Debian machine:
sudo -u postres psql
This drops you in a [psql shell](https://www.postgresql.org/docs/9.6/app-psql.html) where you can issue SQL queries
and so on.
Howto
=====
Deployment
----------
A PostgreSQL server should be deployed with puppet, using the
`postgresql` module. Make sure you also include the
`postgres::backup_source` class so that it's registered with the
backup server, see the `dip::database` class for an example on how to
deploy a server.
See the [[puppet]] documentation for more information on how to deploy
Puppet things.
TODO: turn this in a Tutorial by making it more straightforward to
deploy a cluster, for example just by including a single class.
Find what is taking up space
----------------------------
...
...
@@ -204,4 +239,3 @@ Backups are checked for freshness in Nagios using the
`/etc/dsa/postgresql-backup/dsa-check-backuppg.conf.d/`, per
cluster. The Nagios plugin also takes care of expiring backups when
they are healthy.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment