File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ rm -rf /tmp/codis || true
99rm -rf codis_data_1 || true
1010rm -rf codis_data_2 || true
1111
12- # Clean up temporary directories in codis to free space
13- rm -rf ../codis/bin || true
12+ # Clean up log directory in codis to free space, but keep bin directory
13+ # to preserve existing codis binaries
1414rm -rf ../codis/log || true
1515mkdir -p ../codis/bin
1616mkdir -p ../codis/log
@@ -77,16 +77,7 @@ free -h || true
7777
7878cd ../codis
7979echo " Building codis..."
80-
81- # Free up memory before building
82- echo " Clearing caches to free up memory..."
83- sync
84- if [ $( id -u) -eq 0 ]; then
85- echo 3 > /proc/sys/vm/drop_caches || true
86- fi
87-
88- # Limit parallel jobs during make to reduce memory usage
89- make -j2
80+ make
9081
9182echo ' startup codis dashboard and codis proxy'
9283./admin/codis-dashboard-admin.sh start
You can’t perform that action at this time.
0 commit comments