This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 6345e7c  update
6345e7c is described below

commit 6345e7c09785999e995934aa6725c6f99dc4b0d4
Author: LiLi <[email protected]>
AuthorDate: Wed Jan 26 12:22:44 2022 +0800

    update
    
    Signed-off-by: LiLi <[email protected]>
---
 .github/actions/tune-runner-vm/action.yml           |  4 ++--
 .github/workflows/ci-pulsar-website-build.yaml      | 10 +++++-----
 .github/workflows/ci-pulsar-website-next-build.yaml |  4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/.github/actions/tune-runner-vm/action.yml 
b/.github/actions/tune-runner-vm/action.yml
index e8914db..c175031 100644
--- a/.github/actions/tune-runner-vm/action.yml
+++ b/.github/actions/tune-runner-vm/action.yml
@@ -31,11 +31,11 @@ runs:
             # The default vm.swappiness setting is 60 which has a tendency to 
start swapping when memory
             # consumption is high.
             # Set vm.swappiness=1 to avoid swapping and allow high RAM usage
-            echo 1 | sudo tee /proc/sys/vm/swappiness
+            echo 100 | sudo tee /proc/sys/vm/swappiness
             # Set swappiness to 1 for all cgroups and sub-groups
             for swappiness_dir in /sys/fs/cgroup/memory/*/ 
/sys/fs/cgroup/memory/*/*/; do
               if [ -d "swappiness_dir" ]; then
-                echo 1 | sudo tee $(swappiness_dir)memory.swappiness > 
/dev/null
+                echo 100 | sudo tee $(swappiness_dir)memory.swappiness > 
/dev/null
               fi
             done
 
diff --git a/.github/workflows/ci-pulsar-website-build.yaml 
b/.github/workflows/ci-pulsar-website-build.yaml
index ea489e0..371f783 100644
--- a/.github/workflows/ci-pulsar-website-build.yaml
+++ b/.github/workflows/ci-pulsar-website-build.yaml
@@ -18,9 +18,9 @@
 #
 
 name: CI - Pulsar Website build
-on:
-  push:
-    branches: [main]
+# on:
+#   push:
+#     branches: [main]
   # pull_request:
   #   branches: [main]
   # schedule:
@@ -39,8 +39,8 @@ jobs:
       - name: checkout
         uses: actions/checkout@v2
 
-      # - name: Tune Runner VM
-      #   uses: ./.github/actions/tune-runner-vm
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
 
       - name: Cache local Maven repository
         uses: actions/cache@v2
diff --git a/.github/workflows/ci-pulsar-website-next-build.yaml 
b/.github/workflows/ci-pulsar-website-next-build.yaml
index 72c843e..8c44edb 100644
--- a/.github/workflows/ci-pulsar-website-next-build.yaml
+++ b/.github/workflows/ci-pulsar-website-next-build.yaml
@@ -39,8 +39,8 @@ jobs:
       - name: checkout
         uses: actions/checkout@v2
 
-      # - name: Tune Runner VM
-      #   uses: ./.github/actions/tune-runner-vm
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
 
       - name: Cache local Maven repository
         uses: actions/cache@v2

Reply via email to