34 Commits

Author SHA1 Message Date
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Sven Efftinge
91ad8a3550 [pvc] remove pvc related code 2022-12-01 09:07:00 -03:00
Milan Pavlik
49b02cd883 Revert "[server] Garbage collect probe workspaces"
This reverts commit 0a857e5d4cb81cf59c7f3b2f93b2c40da6b95565.
2022-10-20 12:02:35 +02:00
Milan Pavlik
0a857e5d4c [server] Garbage collect probe workspaces 2022-10-10 16:53:25 +02:00
Andrew Farries
63c4fec94e Remove all references to layoutData 2022-10-04 08:15:20 +02:00
Gero Posmyk-Leinemann
a7fd1becd6 [server] Delete Workspaces & Workspace Instances after configured period 2022-09-15 15:27:16 +02:00
Sven Efftinge
ba78bd4d08 [server] abort running prebuilds on same branch 2022-06-30 11:40:38 +05:30
Alex Tugarev
9f247ca70f [prebuild] cap updateables to be processed
Also, mark updatable as resolved if commit is gone.
2022-06-15 15:31:24 +05:30
Pavel Tumik
dc111f3996 add limit to volume snapshot GC 2022-06-15 02:37:25 +05:30
Pavel Tumik
7a7792f531 volume snapshot delete and restore support, garbage collection 2022-06-15 02:37:25 +05:30
Pavel Tumik
c6910dac35 tie snapshot volumes to workspace instance id 2022-05-25 13:17:39 +05:30
Sven Efftinge
1bf277a17f [prebuilds] no prebuilds for inactive repos 2022-05-19 15:33:33 +05:30
Alex Tugarev
680932745a Revert "[prebuilds] no prebuilds for inactive repos"
This reverts commit 72aa5e0aa8c30b4e000f86d65f2c14667d13de1d.
2022-05-12 13:23:27 +05:30
Sven Efftinge
72aa5e0aa8 [prebuilds] no prebuilds for inactive repos 2022-05-11 23:12:26 +05:30
Pavel Tumik @ GitPod
f1c142b9fb [gitpod-db] add new DB entity for VolumeSnapshot 2022-05-09 20:08:24 +05:30
Milan Pavlik
845e66c56b Format components/gitpod-db with prettier 2022-03-14 21:48:21 +05:30
Andrew Farries
54a765d321 Add rate limits for prebuilds
Prebuilds are rate-limited to N in the last S seconds on a rolling
window basis.
By default, 50 prebuilds are allowed in a 1 minute window.
A configuration property `prebuildLimiter` is added which controls
default rate limit but allows for explicit overrides by cloneURL.
2022-03-08 19:40:15 +05:30
Laurie T. Malau
31efabc38b Remove free text search on contextURL 2022-03-02 16:34:09 +05:30
Tarun Pothulapati
5f6114c282 telemetry: add more fields to data
Fixes https://github.com/gitpod-io/gitpod/issues/7866

This PR updates the `installation-admin-controller` to also retrieve
more data to send with telemetry. These are not part of the
`installationAdminDb` as we do not want to store this in the database
but lazily retrieve whenever a request is sent to `/data` endpoint
of the `installation-admin` express app unlike the `uuid` and settings
which need to be stored and updated.

The following fields are added:
- `totalUsers` : specifies the total number of users in the instance
- `totalWorkspaces`: specifies the total number of **regular** workspaces in the instance
- `totalInstances`: specifies the total number of **regular** workspace instances in the gitpod instance

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-02-17 12:08:57 +01:00
Gero Posmyk-Leinemann
a3d1b614f8 [ws-manager-bridge] Emulate InstanceUpdates for 'Preparing' phase to decouple messagebus 2022-02-17 11:43:57 +01:00
Gero Posmyk-Leinemann
89e94030f9 Revert "[server, et al] Remove PrebuildStatusMaintainer and subsequent unused code"
This reverts commit 6dfe5520fc96757387d52237f35df9cf8a77943e.
2022-01-10 16:02:04 +01:00
Gero Posmyk-Leinemann
84b0fbee7a [server, et al] Remove PrebuildStatusMaintainer and subsequent unused code 2022-01-07 15:05:01 +01:00
Gero Posmyk-Leinemann
9575debc94 [server] Build out SnapshotService 2021-11-04 12:18:12 +01:00
Gero Posmyk-Leinemann
d01d008745 [db] Introduce snapshot.state 2021-11-04 12:18:12 +01:00
Gero Posmyk-Leinemann
b463ee43dc [admin] Optimize adminGetWorkspaces 2021-10-21 04:04:58 -03:00
Sven Efftinge
a8032856a4 [t&p] add workspaces to teams
fixes #4921
2021-09-27 11:48:44 -03:00
Sven Efftinge
240197f239 [server] remove prebuilt time limit 2021-09-14 15:37:39 +05:30
Alex Tugarev
46feeac4c9 [projects] Add Prebuild Events 2021-09-01 04:27:30 -03:00
Simon Emms
f35e762354 [workspace]: add force-stop check on stopping workspaces
Since #4910 stopped counting "stopping" workspaces for billing purposes,
any workspace caught in a "stopping" phase would never be force-stopped.
This adds a conditional "includeStopping" boolean (defaulting to `false`)
to the DB implementation and the meta-instance-controller simply includes
that phase in the search.

It was discovered that ~200 workspaces were caught in this phase (90%
prebuilds) so this phase is necessary to force-stop.
2021-08-13 13:12:12 +02:00
Alex Tugarev
4b5694618e Add Prebuilds page 2021-07-26 16:23:30 +02:00
Christian Weichel
d63f0f4585 [bridge] Set stoppingTime when workspace is stopping
there's no need to include the time our workspaces take to stop into account
when computing workspace runtime (which is accounting relevant).
2021-07-20 11:31:24 +02:00
Alex Tugarev
9ffcfd487f Fix prebuilds for projects 2021-07-14 07:55:36 +02:00
Christian Weichel
b7dda84ad0 [license] Update license header from TypeFox GmbH to Gitpod GmbH 2021-01-04 15:12:02 +01:00
gitpod-init
24f7b609bf initial commit 2020-08-25 09:25:15 +00:00