[PATCH compass-ci 1/2] lib/constants.rb: add SCHED_HOST SCHED_PORT field

[why] lib/sched_client.rb need host port of scheduler, obtain these values from the configuration file. Signed-off-by: Xiao Shenwei <xiaoshenwei96@163.com> --- lib/constants.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/constants.rb b/lib/constants.rb index ffc4f03..27f37cb 100644 --- a/lib/constants.rb +++ b/lib/constants.rb @@ -18,3 +18,6 @@ SRV_HTTP_DOMAIN = config['SRV_HTTP_DOMAIN'] || ENV['SRV_HTTP_DOMAIN'] || 'api.co ASSIST_RESULT_HOST = config['ASSIST_RESULT_HOST'] || ENV['ASSIST_RESULT_HOST'] || '172.17.0.1' ASSIST_RESULT_PORT = config['ASSIST_RESULT_PORT'] || ENV['ASSIST_RESULT_PORT'] || 8102 + +SCHED_HOST = config['SCHED_HOST'] || '172.17.0.1' +SCHED_PORT = config['SCHED_PORT'] || 3000 -- 2.23.0

On Mon, Jan 25, 2021 at 03:10:16PM +0800, Xiao Shenwei wrote:
[why] lib/sched_client.rb need host port of scheduler,
Exactly as you say "lib/sched_client.rb" need this patch, Merge the two patches to one patch, that more easy to review. Thanks, Xueliang
obtain these values from the configuration file.
Signed-off-by: Xiao Shenwei <xiaoshenwei96@163.com> --- lib/constants.rb | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/lib/constants.rb b/lib/constants.rb index ffc4f03..27f37cb 100644 --- a/lib/constants.rb +++ b/lib/constants.rb @@ -18,3 +18,6 @@ SRV_HTTP_DOMAIN = config['SRV_HTTP_DOMAIN'] || ENV['SRV_HTTP_DOMAIN'] || 'api.co
ASSIST_RESULT_HOST = config['ASSIST_RESULT_HOST'] || ENV['ASSIST_RESULT_HOST'] || '172.17.0.1' ASSIST_RESULT_PORT = config['ASSIST_RESULT_PORT'] || ENV['ASSIST_RESULT_PORT'] || 8102 + +SCHED_HOST = config['SCHED_HOST'] || '172.17.0.1' +SCHED_PORT = config['SCHED_PORT'] || 3000 -- 2.23.0

On Mon, Jan 25, 2021 at 03:26:41PM +0800, Cao Xueliang wrote:
On Mon, Jan 25, 2021 at 03:10:16PM +0800, Xiao Shenwei wrote:
[why] lib/sched_client.rb need host port of scheduler,
Exactly as you say "lib/sched_client.rb" need this patch, Merge the two patches to one patch, that more easy to review.
ok, Thanks, Shenwei
Thanks, Xueliang
obtain these values from the configuration file.
Signed-off-by: Xiao Shenwei <xiaoshenwei96@163.com> --- lib/constants.rb | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/lib/constants.rb b/lib/constants.rb index ffc4f03..27f37cb 100644 --- a/lib/constants.rb +++ b/lib/constants.rb @@ -18,3 +18,6 @@ SRV_HTTP_DOMAIN = config['SRV_HTTP_DOMAIN'] || ENV['SRV_HTTP_DOMAIN'] || 'api.co
ASSIST_RESULT_HOST = config['ASSIST_RESULT_HOST'] || ENV['ASSIST_RESULT_HOST'] || '172.17.0.1' ASSIST_RESULT_PORT = config['ASSIST_RESULT_PORT'] || ENV['ASSIST_RESULT_PORT'] || 8102 + +SCHED_HOST = config['SCHED_HOST'] || '172.17.0.1' +SCHED_PORT = config['SCHED_PORT'] || 3000 -- 2.23.0
participants (2)
-
Cao Xueliang
-
Xiao Shenwei