You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2020/11/06 11:46:53 UTC

[skywalking-nginx-lua] branch master updated: doc: set random seed in `init_worker` phase. (#52)

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

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-nginx-lua.git


The following commit(s) were added to refs/heads/master by this push:
     new 2aee11a  doc: set random seed in `init_worker` phase. (#52)
2aee11a is described below

commit 2aee11a7213017b1a1d9c5b90c7028498707b42b
Author: YuanSheng Wang <me...@gmail.com>
AuthorDate: Fri Nov 6 19:46:44 2020 +0800

    doc: set random seed in `init_worker` phase. (#52)
    
    * doc: set random seed in `init_worker` phase.
    
    try to fix issue: https://github.com/apache/skywalking/issues/5805 .
    
    * e2e: set random seed.
---
 README.md                                                 | 2 ++
 examples/nginx.conf                                       | 1 +
 test/e2e/e2e-with-mock-collector/docker/conf.d/nginx.conf | 1 +
 3 files changed, 4 insertions(+)

diff --git a/README.md b/README.md
index 9e69551..1ec2a4e 100644
--- a/README.md
+++ b/README.md
@@ -32,6 +32,8 @@ http {
         -- Instance means the number of Nginx deployment, does not mean the worker instances
         metadata_buffer:set('serviceInstanceName', 'User Service Instance Name')
 
+        -- set random seed
+        require("skywalking.util").set_randomseed()
         require("skywalking.client"):startBackendTimer("http://127.0.0.1:8080")
     }
 
diff --git a/examples/nginx.conf b/examples/nginx.conf
index b9a74bf..db613a2 100644
--- a/examples/nginx.conf
+++ b/examples/nginx.conf
@@ -38,6 +38,7 @@ http {
         -- Instance means the number of Nginx deloyment, does not mean the worker instances
         metadata_buffer:set('serviceInstanceName', 'User Service Instance Name')
 
+        require("skywalking.util").set_randomseed()
         require("skywalking.client"):startBackendTimer("http://127.0.0.1:8080")
     }
 
diff --git a/test/e2e/e2e-with-mock-collector/docker/conf.d/nginx.conf b/test/e2e/e2e-with-mock-collector/docker/conf.d/nginx.conf
index d7ef21f..cd1e679 100644
--- a/test/e2e/e2e-with-mock-collector/docker/conf.d/nginx.conf
+++ b/test/e2e/e2e-with-mock-collector/docker/conf.d/nginx.conf
@@ -38,6 +38,7 @@ http {
         -- Instance means the number of Nginx deployment, does not mean the worker instances
         metadata_buffer:set('serviceInstanceName', 'e2e-test-with-mock-collector-instanceA')
 
+        require("skywalking.util").set_randomseed()
         require("skywalking.client"):startBackendTimer("http://${collector}:12800")
     }