17 Commits

Author SHA1 Message Date
Frederik Spang
2862432828
Add pgbouncer (#3884)
* Add patch for pgbouncer

* pgcat over pgbouncer

* Add patch for .env file

* Apply patches and add initial pgcat tolm file

* feat: hardcode pgcat image

* Fixes from review

* Align usernames defaults

* Remove postgres from default depends_on; Covered by pgcat by extension

* Set user and password - pgcat maybe doesnt support host auth trust

* Pool name maybe has to match, for some reason

* Use healthcheck from pgcat PR

* Reduce pool size, leave some for healthchecks and other clients running

* Start pgcat for bash scripts with postgres

* Update docker-compose.yml

* Use pgbouncer

* Revert to TRUST method
2025-08-23 20:18:13 +07:00
Daniel Bunte
abe34d09ed
feat(install): Adds support for podman(compose) (#3673) 2025-07-22 13:58:07 +00:00
anthony sottile
ed04842604
remove index workaround (#3730)
a hard stop is in place with this so it can be removed now
2025-06-03 20:56:16 +00:00
Burak Yigit Kaya
3913a9f0c7
ci: Even better cache keys and granular caching (#3534)
Just starting up services for Snuba or Sentry migrations takes up to a minute sometimes and we do this even when there are no migrations, just because one of the Sentry or Snuba migrations change. This patch splits the caches up so only the necessary one runs, saving further time. It also uses the `LATEST_TAG` as the cache key for upgrade tests as the image versions or data will never change for a certain tag once it is release.
2025-01-16 10:10:14 -08:00
Burak Yigit Kaya
8c1653dc4a
ci: Skip DB ops during install completely on cache hit (#3496)
Follow up to #3488

A new record: 2m 8s for installing self-hosted:
![image](https://github.com/user-attachments/assets/7cc6409d-5388-49ba-ad87-b7a1e99c9acc)
2024-12-31 13:26:22 -08:00
Burak Yigit Kaya
ad39dabdf0
ref(geoip): Remove geoipupdate from compose (#3490)
`geoipupdate` is not used by any other service nor it is needed for any
service to run. Moreover, it is a one-shot command, causing
`docker compose up --wait` to fail when it exits with a non-zero status.
This happens when one has not yet set up their credentials and they may
choose to never do this.

This PR removes `geoipupdate` from the `docker-compose.yml` file and
moves the command directly into the geoip related script. One may run
this whenever they want to update their GeoIP database.

This PR needs an accompanying docs change.
2024-12-23 14:32:17 -08:00
Hubert Deng
c18da05a46
Check postgres os before proceeding with install (#3197)
* check postgres os before proceeding

* use dc
2024-07-12 09:33:49 -07:00
Hubert Deng
a6cb076910
Use general kafka topic creation in self-hosted (#3121)
* use general kafka topic creation
2024-06-12 15:37:15 -07:00
Hubert Deng
45a92bdaa5
chore: Use django ORM to perform sql commands (#2827)
* use django orm
2024-02-26 16:22:28 -08:00
Hubert Deng
b15d7ee6c2
Tweak postgres indexing fix (#2792)
* tweak postgres indexing fix

* add exists constraint
2024-02-14 13:20:43 -08:00
Hubert Deng
c3da53d2e7
fix: DB migration script (#2779)
* use different approach to wait for postgres server
2024-02-09 09:20:06 -08:00
Hubert Deng
2346a69767
Fix groupedmessage indexing error (#2777)
* fix groupedmessage indexing error
2024-02-08 13:03:09 -08:00
Chad Whitacre
9df7e7da30
Rename flag to --skip-user-creation (#1696) 2022-09-14 19:59:12 +00:00
drmrbrewer
f3027d08ca
Update set-up-and-migrate-database.sh (#1308) 2022-02-07 21:58:17 +00:00
Chad Whitacre
459323354e
Do more migrating to Docker Compose v2 (#1179) 2021-11-30 16:55:56 -05:00
Chad Whitacre
f086157548
Clean up the refactor (#907)
- Use source appropriately (needed for config to propagate properly)
- Standardize group/endgroup line-spacing
- Clean up envvar defaults
2021-03-30 12:21:30 +03:00
Chad Whitacre
568f9052b5
Factor out a few more things (#906) 2021-03-29 17:28:39 -04:00