You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "damondouglas (via GitHub)" <gi...@apache.org> on 2023/01/25 20:09:47 UTC

[GitHub] [beam] damondouglas opened a new pull request, #25171: [25119] Change test-infra Kafka outside service to NodePort

damondouglas opened a new pull request, #25171:
URL: https://github.com/apache/beam/pull/25171

   This PR closes #25119 and addresses #19465 by:
   1. Change .test-infra/kubernetes/kafka-cluster/04-outside-services from LoadBalancer to NodePort
   2. Refactor .test-infra/kubernetes/kafka-cluster/05-kafka/10broker-config.yml to query `OUTSIDE_HOST` from k8s node `InternalIP` and `OUTSIDE_PORT` to query `outside-${KAFKA_BROKER_ID}`'s NodePort
   3. Added `nodeIPAddress` and `nodePort` methods to .test-infra/jenkins/Kubernetes.groovy and cooresponding .test-infra/kubernetes/kubernetes.sh to enable Node InternalIP and NodePort querying within a jenkins job context
   4. Refactor the following with `usePublicIps=false`
       - .test-infra/jenkins/job_PerformanceTests_xlang_KafkaIO_Python.groovy
       - .test-infra/jenkins/job_PerformanceTests_KafkaIO_IT.groovy
   5. terraform code to validate and provision Google Cloud networking requirements to support `usePublicIps=false` (Note: I already executed the terraform code, per personal communication, on apache-beam-testing GCP project)
   
   I was unable to test end-to-end the new workflow from jenkins job creation to seeing a Dataflow Job executing successfully in my own Google Cloud environment.  However, I was able to validate:
   1. Using a private IP compute engine instance in the same GCP network, https://kafka.apache.org/quickstart worked using the kubernetes cluster's node InternalIP and NodePort as the `--bootstrap-server`
   2. Spinning up .test-infra/dockerized-jenkins and seeding `job_PerformanceTests_xlang_KafkaIO_Python.groovy` from github.com/damondouglas/beam from branch `25119-fix-test-infra-kafka-service` built the test job using the queried kubernetes Node InternalIP and NodePort as the bootstrap_server arguments
   
   ------------------------
   
   Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
   
    - [x] Mention the appropriate issue in your description (for example: `addresses #123`), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment `fixes #<ISSUE NUMBER>` instead.
    - ~Update `CHANGES.md` with noteworthy changes.~
    - ~If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).~
   
   See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://beam.apache.org/contribute/get-started-contributing/#make-the-reviewers-job-easier).
   
   To check the build health, please visit [https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md](https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md)
   
   GitHub Actions Tests Status (on master branch)
   ------------------------------------------------------------------------------------------------
   [![Build python source distribution and wheels](https://github.com/apache/beam/workflows/Build%20python%20source%20distribution%20and%20wheels/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
   [![Python tests](https://github.com/apache/beam/workflows/Python%20tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
   [![Java tests](https://github.com/apache/beam/workflows/Java%20Tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
   [![Go tests](https://github.com/apache/beam/workflows/Go%20tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Go+tests%22+branch%3Amaster+event%3Aschedule)
   
   See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more information about GitHub Actions CI.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] Abacn commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1405337973

   Run Python xlang KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] Abacn commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1404250045

   Run Python xlang KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas closed pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas closed pull request #25171: [25119] Change test-infra Kafka outside service to NodePort
URL: https://github.com/apache/beam/pull/25171


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] Abacn commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1404257356

   adter a seedjob looks like it still trying to access to loadBalancer somewhere (which is replaced to NodePort in this PR)
   ```
   eval 'kubectl --kubeconfig=/home/jenkins/jenkins-slave/workspace/beam_PerformanceTests_xlang_KafkaIO_Python/config-beam-performancetests-xlang-kafkaio-python-37 --namespace=beam-performancetests-xlang-kafkaio-python-37 get svc outside-0 -ojsonpath='\''{.status.loadBalancer.ingress[0].ip}'\'''
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1405561704

   Run Python xlang KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1405500185

   Run Java KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] Abacn commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1404367785

   Run Python xlang KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1405561350

   Run Java KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1410805666

   Run Python xlang KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1410796636

   Run Java KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1404378912

   @Abacn is the jenkins job seeding from https://github.com/damondouglas/beam/tree/25119-fix-test-infra-kafka-service?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1405664364

   @Abacn I set this to draft to take a break and focus on other projects.  The job set the parameters like this:  kafkaBootstrapServerAddresses=$NODE_IP_0:32401,$NODE_IP_1:32402,$NODE_IP_2:32403","--kafkaTopic=beam-sdf","--readTimeout=1500","--numWorkers=5","--autoscalingAlgorithm=NONE","--experiments=use_runner_v2,use_unified_****" 
   
   I was expecting instead of $NODE_IP_<some number> to be an actual IP address.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1405531002

   Run Java KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1405531419

   Run Python xlang KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1410796763

   Run Python xlang KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damondouglas commented on pull request #25171: [25119] Change test-infra Kafka outside service to NodePort

Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on PR #25171:
URL: https://github.com/apache/beam/pull/25171#issuecomment-1405500417

   Run Python xlang KafkaIO Performance Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org