Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunk fetching APIs from Control Plane on startup #3495

Merged

Conversation

renuka-fernando
Copy link
Contributor

@renuka-fernando renuka-fernando commented Feb 27, 2024

Purpose

Chunk retrieving deployments from controlplane to reduce the overhead to the controlplane.

Issues

Automation tests

  • Unit tests added: Yes
  • Integration tests added: No

Tested environments

Tested in Dev envirionment


Maintainers: Check before merge

  • Assigned 'Type' label
  • Assigned the project
  • Validated respective github issues
  • Assigned milestone to the github issue(s)

Logs

With existing changes

adapter-1   | 2024-02-28 06:20:01 INFO [main.go:39] - [main.startMicroGateway] [-] Starting Choreo Connect Adapter
adapter-1   | 2024-02-28 06:20:37 INFO [adapter.go:339] - [adapter.fetchAPIsOnStartUp] [-] Fetching APIs at startup with the received API UUID list (size: 3998)...
adapter-1   | 2024-02-28 06:27:28 INFO [adapter.go:350] - [adapter.fetchAPIsOnStartUp] [-] Fetching APIs at startup is completed...

With new changes

adapter-1   | 2024-02-29 10:02:22 INFO [main.go:39] - [main.startMicroGateway] [-] Starting Choreo Connect Adapter
adapter-1   | 2024-02-29 10:02:57 INFO [adapter.go:343] - [adapter.fetchAPIsOnStartUp] [-] Fetching chunked APIs... [1/8]
adapter-1   | 2024-02-29 10:03:32 INFO [adapter.go:343] - [adapter.fetchAPIsOnStartUp] [-] Fetching chunked APIs... [2/8]
adapter-1   | 2024-02-29 10:04:07 INFO [adapter.go:343] - [adapter.fetchAPIsOnStartUp] [-] Fetching chunked APIs... [3/8]
adapter-1   | 2024-02-29 10:04:42 INFO [adapter.go:343] - [adapter.fetchAPIsOnStartUp] [-] Fetching chunked APIs... [4/8]
adapter-1   | 2024-02-29 10:05:20 INFO [adapter.go:343] - [adapter.fetchAPIsOnStartUp] [-] Fetching chunked APIs... [5/8]
adapter-1   | 2024-02-29 10:05:57 INFO [adapter.go:343] - [adapter.fetchAPIsOnStartUp] [-] Fetching chunked APIs... [6/8]
adapter-1   | 2024-02-29 10:06:32 INFO [adapter.go:343] - [adapter.fetchAPIsOnStartUp] [-] Fetching chunked APIs... [7/8]
adapter-1   | 2024-02-29 10:07:13 INFO [adapter.go:343] - [adapter.fetchAPIsOnStartUp] [-] Fetching chunked APIs... [8/8]
adapter-1   | 2024-02-29 10:08:50 INFO [adapter.go:351] - [adapter.fetchAPIsOnStartUp] [-] Fetching APIs at startup is completed...

Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
Copy link
Contributor

@VajiraPrabuddhaka VajiraPrabuddhaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

VirajSalaka
VirajSalaka previously approved these changes Feb 28, 2024
@renuka-fernando renuka-fernando force-pushed the chunk-retrieve-runtime-artifact branch from c717e04 to a09d415 Compare February 29, 2024 09:43
Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
VirajSalaka
VirajSalaka previously approved these changes Feb 29, 2024
… after all chunks

Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
@renuka-fernando renuka-fernando merged commit 014642b into wso2:choreo Mar 1, 2024
2 of 3 checks passed
@choreo-cicd
Copy link

[succeeded] Controlplane cluster : dev-deployment-v2 : 20240301.13

@choreo-cicd
Copy link

[succeeded] Dataplane(EastUS) cluster : dev-deployment-v2 : 20240301.13

@choreo-cicd
Copy link

[succeeded] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20240301.13

@choreo-cicd
Copy link

[succeeded] : dev-deployment-v2 : 20240301.13

@choreo-cicd
Copy link

[failed] Dataplane(NorthEU) cluster : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[failed] Controlplane cluster : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[succeeded] : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[failed] Dataplane(EastUS) cluster : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[canceled] Dataplane(EastUS) cluster : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[succeeded] Dataplane(NorthEU) cluster : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[succeeded] Controlplane cluster : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[succeeded] : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[] Dataplane(EastUS) cluster : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[] Dataplane(NorthEU) cluster : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[] Controlplane cluster : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[] : stage-deployment-v2 : 20240304.2

@choreo-cicd
Copy link

[succeeded] Dataplane(NorthEU) cluster : prod-deployment-v2 : 20240305.4

@choreo-cicd
Copy link

[succeeded] : prod-deployment-v2 : 20240305.4

@choreo-cicd
Copy link

[succeeded] Controlplane cluster : prod-deployment-v2 : 20240305.4

@choreo-cicd
Copy link

[succeeded] Dataplane(EastUS) cluster : prod-deployment-v2 : 20240305.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants