Commit Graph

15919 Commits

Author SHA1 Message Date
Girish Ramakrishnan
b4e4f26361 Rework cpuShares into cpuQuota
cpuShares is the relative weight wrt other apps. This is used when
there is contention for CPU. If we want this, maybe we implement
a UI where we show all the apps and let the user re-order them.
As it stands, it is confusing.

cpuQuota is a more straightforward "hard limit" of the CPU% that you
want the app to consume.

Can be tested with : stress -c 8 -t 20s
2024-04-10 18:25:14 +02:00
Girish Ramakrishnan
2afaf1f36d more changes 2024-04-10 12:52:42 +02:00
Girish Ramakrishnan
f236213356 backups: memory max is RAM 2024-04-10 12:48:07 +02:00
Girish Ramakrishnan
efd0be5e2c services: send the default memory limit 2024-04-10 12:42:25 +02:00
Johannes Zellner
6612f48d0a dashboard: make filter bar persistent and inline instead of popover 2024-04-10 12:24:56 +02:00
Girish Ramakrishnan
f1679f1614 compute app excess based on RAM*2 2024-04-10 12:12:49 +02:00
Girish Ramakrishnan
8b7dca00af app memory: make slider go till RAM
anything above RAM is useless
2024-04-10 12:12:49 +02:00
Johannes Zellner
59fa26b0fb dashboard: we hardly use warning button colour 2024-04-09 19:55:47 +02:00
Johannes Zellner
7a92222050 dashboard: show active filter numbers 2024-04-09 19:55:07 +02:00
Girish Ramakrishnan
be2775e12e memoryLimit: redefine to not include swap
Currently, we allocate 50% as RAM and 50% as swap. The manifest is
usually quite conservative on memory values. This means that we set
up a system where the app is applying memory pressure almost immediately.
This then swaps things randomly and increases cpu usage (kswapd shows
up in the profile).

To rethink the whole situation: we should not cap apps with a swap limit at all.
The memory hard limit is what is important. By redefining memoryLimit , we are
doubling every container's memory and it's good that we over allocate this.
2024-04-09 18:59:40 +02:00
Girish Ramakrishnan
6c3f8b9b84 various changes 2024-04-09 18:48:46 +02:00
Johannes Zellner
f02157857c dashboard: add / eventhandler for search 2024-04-09 15:41:50 +02:00
Girish Ramakrishnan
470b0d6be7 update some modules 2024-04-09 15:31:46 +02:00
Girish Ramakrishnan
2b1b304c6e backup/import/restore: fix crash with root path calcuation
rootPath was calculated before the arguments were validated
2024-04-09 13:53:48 +02:00
Johannes Zellner
5460a64951 dashboard: Make app list columns sortable 2024-04-09 13:51:57 +02:00
Girish Ramakrishnan
62faf616c5 import: acceptSelfSignedCerts is validated at provider 2024-04-09 13:24:33 +02:00
Girish Ramakrishnan
3f2f4c7c6b restore: acceptSelfSignedCerts is validated by provider 2024-04-09 13:20:01 +02:00
Girish Ramakrishnan
5e49a33e8f backups: rootPath is needed only when testing storage 2024-04-09 13:03:31 +02:00
Girish Ramakrishnan
5fb7d53018 backups: encryptedFilenames and mountOptions are validated at provider level 2024-04-09 12:31:10 +02:00
Girish Ramakrishnan
424a3c2b53 validateEncryptionPassword need not by exported or async 2024-04-09 12:23:43 +02:00
Girish Ramakrishnan
6e629b984b typo in error message 2024-04-09 11:53:58 +02:00
Girish Ramakrishnan
c73609211a import: fix typo in mountPoint parameter
mountpoint provider supports prefix (except not via UI). It's more
natural for the user to enter the actual mountpoint than the filesystem
path directly.
2024-04-08 19:21:59 +02:00
Johannes Zellner
e5477351f8 dashboard: do not specify tooltip location in list view 2024-04-08 17:57:59 +02:00
Johannes Zellner
d89f8d99a3 dashboard: only show relevant actions in list view 2024-04-08 16:44:15 +02:00
Johannes Zellner
da472dff19 dashboard: use new image edit indicator in apps and applinks configuration 2024-04-08 16:28:38 +02:00
Johannes Zellner
2dc501dcbd dashboard: clear user selection when adding groups 2024-04-08 12:55:54 +02:00
Johannes Zellner
052b705c3c dashboard: preserve apps view type in localStorage 2024-04-06 16:16:48 +02:00
Johannes Zellner
24c8fca971 Better mobile list view and display app task progress 2024-04-06 16:12:08 +02:00
Johannes Zellner
86edabee4d Some visual improvements to the list view 2024-04-06 15:47:46 +02:00
Johannes Zellner
d6f162a8ca dashboard: add initial version of app list view 2024-04-06 12:30:44 +02:00
Johannes Zellner
9e05a4eab7 Show background in all oidc pages 2024-04-06 10:52:25 +02:00
Johannes Zellner
32d9490856 Revert "dashboard: first use profile background if not exist try branding background"
This reverts commit 8db6da2de9.
2024-04-06 10:00:16 +02:00
Johannes Zellner
91d9f66eb8 dashboard: max-height is wrong here 2024-04-05 20:03:52 +02:00
Johannes Zellner
86986d8f34 Allow img-src blob: 2024-04-05 19:59:38 +02:00
Johannes Zellner
03ef9f109f dashboard: better image upload/edit indicator 2024-04-05 17:37:58 +02:00
Johannes Zellner
67a8228886 Show placeholder image for branding background 2024-04-05 17:15:31 +02:00
Johannes Zellner
8db6da2de9 dashboard: first use profile background if not exist try branding background 2024-04-05 17:11:37 +02:00
Johannes Zellner
544b8180b2 dashboard: add UI to change background image 2024-04-05 16:26:59 +02:00
Johannes Zellner
2515b032d0 Add branding background UI 2024-04-05 14:31:41 +02:00
Girish Ramakrishnan
6086b0e797 typo 2024-04-05 12:11:43 +02:00
Girish Ramakrishnan
2760e25c0f users: validate groupIds items 2024-04-05 11:59:16 +02:00
Girish Ramakrishnan
76aa0b4a70 add to changes 2024-04-04 18:25:35 +02:00
Girish Ramakrishnan
0e23687c7f cloudron-setup: lower memory requirement further for lightsail 2024-04-04 17:51:27 +02:00
Johannes Zellner
028b820d48 oidc: Reload the login view if session is gone 2024-04-04 17:32:58 +02:00
Johannes Zellner
2c81458954 Show branding background image in login view 2024-04-04 15:38:44 +02:00
Johannes Zellner
ebe1883f8e Also trigger first time oidc auto login flow for initial admin creation 2024-04-04 11:42:57 +02:00
Girish Ramakrishnan
030e468829 docker: prune volumes on infra change 2024-04-04 11:36:26 +02:00
Johannes Zellner
68724bcb4f Revert "oidc: enable rpInitiated logout"
This reverts commit a6f4b2896a.
2024-04-04 10:41:00 +02:00
Johannes Zellner
6186bb54e4 Revert "oidc: allow post logout redirect back to the app"
This reverts commit 3ddf72a24d.
2024-04-04 10:40:53 +02:00
Johannes Zellner
a4e822dec2 Make autologin token only one-time use 2024-04-04 10:29:36 +02:00