From ba51d7a256af8b7126b34ec9b4020bd34a95b4ce Mon Sep 17 00:00:00 2001 From: PatrickRL <121479313+PatrickRL@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:26:46 +0200 Subject: [PATCH] ADD: Additional Client Options (#2049) * Update services.js Added more client options * Fix: Expert modal with scrollable rows * Fix: scroll for all os and displays sizes * More options added added more option, including slasher for Lighthouse as well as removing unused pruning option for Besu * Update ExpertWindow.vue fixed formating and custom install volume problem * FIX: Format * REMOVE: Image --------- Co-authored-by: mabasian <54101509+mabasian@users.noreply.github.com> Co-authored-by: NeoPlays <80448387+NeoPlays@users.noreply.github.com> --- launcher/public/output.css | 28 + launcher/src/backend/ServiceManager.js | 10 + .../ethereum-services/NethermindService.js | 11 + launcher/src/background.js | 4 + .../UI/node-page/sections/ExpertWindow.vue | 108 ++- launcher/src/store/ControlService.js | 4 + launcher/src/store/services.js | 691 +++++++++++++++++- 7 files changed, 836 insertions(+), 20 deletions(-) diff --git a/launcher/public/output.css b/launcher/public/output.css index 187d9c36d..a1abaffc1 100755 --- a/launcher/public/output.css +++ b/launcher/public/output.css @@ -1840,6 +1840,10 @@ video { height: 70px; } +.h-\[74\%\]{ + height: 74%; +} + .h-\[8\%\]{ height: 8%; } @@ -2026,6 +2030,30 @@ video { max-height: 100%; } +.max-h-\[74vh\]{ + max-height: 74vh; +} + +.max-h-\[72vh\]{ + max-height: 72vh; +} + +.max-h-\[65vh\]{ + max-height: 65vh; +} + +.max-h-\[50vh\]{ + max-height: 50vh; +} + +.max-h-\[60vh\]{ + max-height: 60vh; +} + +.max-h-\[59vh\]{ + max-height: 59vh; +} + .min-h-11{ min-height: 2.75rem; } diff --git a/launcher/src/backend/ServiceManager.js b/launcher/src/backend/ServiceManager.js index 065b341be..70b650161 100755 --- a/launcher/src/backend/ServiceManager.js +++ b/launcher/src/backend/ServiceManager.js @@ -328,6 +328,16 @@ export class ServiceManager { await this.nodeConnection.sshService.exec(`rm -r ${dataDir}/*`); } + async deleteSlasherVolume(serviceID) { + let services = await this.readServiceConfigurations(); + let service = services.find((s) => s.id === serviceID); + let workingDir = this.getWorkindDir(service); + if (!workingDir.endsWith("/")) { + workingDir += "/"; + } + await this.nodeConnection.sshService.exec(`rm -r ${workingDir}/slasher`); + } + getWorkindDir(service) { if (service.volumes.length > 0) { let volumeWithID = service.volumes.find((v) => v.destinationPath.includes(service.id)); diff --git a/launcher/src/backend/ethereum-services/NethermindService.js b/launcher/src/backend/ethereum-services/NethermindService.js index 1605b61d6..79f8a8be9 100755 --- a/launcher/src/backend/ethereum-services/NethermindService.js +++ b/launcher/src/backend/ethereum-services/NethermindService.js @@ -37,6 +37,17 @@ export class NethermindService extends NodeService { "--HealthChecks.Enabled=true", "--Pruning.Mode=Hybrid", "--Pruning.FullPruningTrigger=StateDbSize", + "--Pruning.AvailableSpaceCheckEnabled=true", + "--Pruning.CacheMb=1024", + "--Pruning.PersistenceInterval=8192", + "--Pruning.PruningBoundary=64", + "--Pruning.TrackedPastKeyCountMemoryRatio=0.1", + "--Pruning.FullPruningCompletionBehavior=None", + "--Pruning.FullPruningDisableLowPriorityWrites=false", + "--Pruning.FullPruningMaxDegreeOfParallelism=0", + "--Pruning.FullPruningMemoryBudgetMb=4000", + "--Pruning.FullPruningMinimumDelayHours=240", + "--Pruning.FullPruningThresholdMb=256000", ], // command ["./nethermind"], // entrypoint null, // env diff --git a/launcher/src/background.js b/launcher/src/background.js index 4ba2278df..4e5e04da4 100755 --- a/launcher/src/background.js +++ b/launcher/src/background.js @@ -764,6 +764,10 @@ ipcMain.handle("getNewLauncherVersion", async () => { return stereumUpdater.getNewLauncherVersion(); }); +ipcMain.handle("deleteSlasherVolume", async (event, args) => { + return await serviceManager.deleteSlasherVolume(args); +}); + // Scheme must be registered before the app is ready protocol.registerSchemesAsPrivileged([{ scheme: "app", privileges: { secure: true, standard: true } }]); diff --git a/launcher/src/components/UI/node-page/sections/ExpertWindow.vue b/launcher/src/components/UI/node-page/sections/ExpertWindow.vue index 439566b95..ba54b58b0 100755 --- a/launcher/src/components/UI/node-page/sections/ExpertWindow.vue +++ b/launcher/src/components/UI/node-page/sections/ExpertWindow.vue @@ -6,21 +6,29 @@ @click="$emit('hideModal')" >
- {{ item.category }} - client -
- ID: {{ item.config.serviceID }} ++ {{ item.category }} + client +
+ ID: {{ item.config.serviceID }} +