Update: Successful Deployment of My Local Service on Choreo

4 views
Skip to first unread message

Visal Vitharana (Intern)

unread,
Oct 28, 2024, 11:27:05 AM10/28/24
to LDF Dev, Ramith Jayasinghe, Sanjiva Weerawarana
Hi all,

I’m pleased to inform you that we have successfully deployed the my local service on Choreo. You can access the service at the following URL:
https://mylocal.datafoundation.lk/mylocal/

During the deployment process, we explored several methods to optimize the backend deployment. Initially, it took approximately 3 hours for the service to complete the warm-up process in Choreo. However, with @Ramith Jayasinghe's data file embedding method, we successfully reduced the startup time to around 1.5 minutes, and sometimes even under 1 minute.

Please note that scale-to-zero is enabled in Choreo, so the front end may take a little time to load initially.

If you have any questions or need further details, please feel free to reach out.

Best regards,

Visal.

--
Visal Vitharana | Intern Software Engineer | WSO2
(m)  +94 76 712 3972      |      (e)  vi...@wso2.com


Malith Jayasinghe

unread,
Oct 28, 2024, 9:40:44 PM10/28/24
to Visal Vitharana (Intern), LDF Dev, Ramith Jayasinghe, Sanjiva Weerawarana
Great!
I just tried it as well, and the site loaded instantly for me.

Sanjiva Weerawarana

unread,
Oct 29, 2024, 10:50:11 AM10/29/24
to Visal Vitharana (Intern), LDF Dev, Ramith Jayasinghe
This is great! Tried it and its awesome :). Thanks Visal!
--
Sanjiva Weerawarana

Sanjiva Weerawarana

unread,
Oct 29, 2024, 10:50:24 AM10/29/24
to Visal Vitharana (Intern), LDF Dev, Ramith Jayasinghe
Where is the code? We need to organize the repos too.
--
Sanjiva Weerawarana

Ramith Jayasinghe

unread,
Oct 30, 2024, 1:50:53 AM10/30/24
to Sanjiva Weerawarana, Visal Vitharana (Intern), LDF Dev
Hi Sanjiva,
 Code for the server side is in : https://github.com/LDFLK/mylocal_service/tree/choreo

regards
Ramith
--
Ramith Jayasinghe | Director Engineering | WSO2 Inc.

Visal Vitharana (Intern)

unread,
Oct 31, 2024, 12:01:40 AM10/31/24
to Sanjiva Weerawarana, LDF Dev, Ramith Jayasinghe
Hi Sanjiva,

All the code repositories are organized under the LDF GitHub organization. For the deployments on Choreo, we created Choreo branches in the relevant repositories. These branches were necessary to accommodate the following changes required by Choreo:

  1. Update Dockerfiles to use non-root users, as Choreo mandates non-root execution.
  2. Add endpoint details to the .choreo directory for proper configuration.
  3. Update deprecated modules, as some of them were outdated and incompatible.
  4. Adjust authentication to OAuth2, to align with Choreo’s requirements.
And we performed a few additional adjustments during deployment in some repos, including environment-specific tweaks to ensure everything runs smoothly.
Regards,
Visal.
Reply all
Reply to author
Forward
0 new messages