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

MAC dependency is too large to deploy it to CH #112

Open
art-mep opened this issue Dec 11, 2024 · 6 comments
Open

MAC dependency is too large to deploy it to CH #112

art-mep opened this issue Dec 11, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@art-mep
Copy link

art-mep commented Dec 11, 2024

The screenshot below represents the size of an exported to deployable jar project with a few flows and only needed dependencies. On the left the MAC connector is added to the pom file and the final size exceeds 351 MB, on the right - the same project without MAC connector has almost 67 MB. Looks like the MAC dependency weights around 290 MB. With that said there is a question: how is it possible to deploy projects with MAC dependency to CloudHub (with an app limit set to 200 MB) or CloudHub 2.0 (with an app limit set to 350 MB)?

image

@tbolis-at-mulesoft
Copy link
Member

Hi @art-mep, we are aware of the issue.
Today CH2.0 is the only way. We are working to provide a mechanism to add only the required dependencies based on the external services you want to consume.

@tbolis-at-mulesoft tbolis-at-mulesoft added the enhancement New feature or request label Dec 11, 2024
@tbolis-at-mulesoft tbolis-at-mulesoft self-assigned this Dec 11, 2024
@art-mep
Copy link
Author

art-mep commented Dec 11, 2024

Hi @tbolis-at-mulesoft
The current limit for CH2.0 is 350MB. Is there any way to reduce the size of the .jar right now?

@tbolis-at-mulesoft
Copy link
Member

What do you have added to your app? Is it an option to split the app into 2? One only wrapping the connector and exposing the methods you need and the other consuming the first and adding additional dependencies?

@art-mep
Copy link
Author

art-mep commented Dec 11, 2024

About 5-6 flows of simple logic that use SMTP, GSheets, and HTTP. So no dependencies to get rid of. MUnits are absent. Your solution with a separate app to adopt only the MAC connector looks adoptable even though it is not possible to deploy it to a simple CloudHub. I'll try it with CH2.0.

Thanks for your help!

@tbolis-at-mulesoft
Copy link
Member

tbolis-at-mulesoft commented Dec 11, 2024

FYI the MAC Vectors connector for example is today close to 330MB, while by only having the AISearch, Azure Blob Storage and AzureOpenAI dependencies we are close to 230. Even after an eventual refactoring of the mule-ai-chain-connector I don't think we will be able to support CH2.0.

@art-mep
Copy link
Author

art-mep commented Dec 12, 2024

From MAC operations we are only using calls to OpenAI's GPTs. A solution to include only needed MAC parts would be a great thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants