mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
course updates
This commit is contained in:
parent
18a07247d0
commit
edb2c5a3d7
@ -12,15 +12,9 @@ FILE_SIZE_MB=1
|
|||||||
|
|
||||||
# Create large files
|
# Create large files
|
||||||
for i in $(seq 1 $NUM_FILES); do
|
for i in $(seq 1 $NUM_FILES); do
|
||||||
TIME=$(date +%YYYY%m%d%H%M%s%N)
|
TIME=$(date +%Y%m%d%H%M%s%N)
|
||||||
mkdir -p "$TARGET_DIR/$TIME"
|
mkdir -p "$TARGET_DIR/$TIME"
|
||||||
dd if=/dev/zero of="$TARGET_DIR/$TIME/app_${i}.log" bs=1M count=$FILE_SIZE_MB
|
dd if=/dev/zero of="$TARGET_DIR/$TIME/app_${i}.log" bs=1M count=$FILE_SIZE_MB
|
||||||
done
|
done
|
||||||
|
|
||||||
# Wait for all background processes to finish
|
|
||||||
wait
|
|
||||||
|
|
||||||
#give time to troubleshoot
|
|
||||||
sleep 60
|
|
||||||
|
|
||||||
echo "Disk usage simulation complete. Large files created in $TARGET_DIR."
|
echo "Disk usage simulation complete. Large files created in $TARGET_DIR."
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 1016 KiB After Width: | Height: | Size: 88 KiB |
Loading…
x
Reference in New Issue
Block a user