feat: added app to fill a pvc in 1GB increments #24
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: NationTech/harmony#24
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "php-fill-volume"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP: This takes roughly 35 seconds to add 1GB to the db, which I am not sure is fast enough. I tried a bunch of other methods to speed it up, for example:
@ -3,0 +33,4 @@// Disk usage (PVC mount path)$mountPath = '/var/lib/mysql'; // Change this if PVC is mounted elsewhere$freeBytes = disk_free_space($mountPath);Mariadb / mysql is not in the same container as the PHP process. You'll have to query mariadb stats or something else.
I think the p-r should be recreated to make sure to have a clean diff.
For now there is only 1 comment for sure : the db_size must move and have a sensible default.
@ -17,3 +26,4 @@project_root: "./php".into(),..Default::default()},db_size: "2Gi".to_string(),This belongs in the LAMPConfig struct and should use the default option. I think 2G is a sensible default for now.
@ -40,3 +53,4 @@fn create_interpret(&self) -> Box<dyn Interpret<T>> {Box::new(LAMPInterpret {score: self.clone(),namespace: "harmony-lamp".to_string(),use the score namespace.
But there seems to be something wrong with this p-r. There should not be so many changes.
Pull request closed