You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "lsergio (via GitHub)" <gi...@apache.org> on 2024/01/12 18:37:50 UTC

[I] Ability to set different resources for jvm and native containers when both are used in the same Integration [camel-k]

lsergio opened a new issue, #5065:
URL: https://github.com/apache/camel-k/issues/5065

   ### Requirement
   
   I'm trying to reduce the memory consumption of my Integrations by using native builds and setting low values on the Container trait. However, as the native builder takes a longer time to run, I'm configuring the Quarkus trait to build the jvm pod and replace it later with the native pod.
   As the Container trait configuration is used for both integrations, I have to provide more resources as required by the jvm build.
   
   ### Problem
   
   Create a very basic intergration with the following Traits:
   ```
    traits:
       container:
         requestCPU: "200m"
         requestMemory: 20Mi
         limitMemory: 20Mi
       quarkus:
         buildMode:
         - jvm
         - native
   ```
   The jvm pod will attempt to start and fail because 20MB is not enough for it, although it's enough for my native pod to start.
   If I could setup different values for each container type, I would provide more memory to the jvm build during the native build time and lower memory for the native pod.
   
   
   ### Proposal
   
   We might have something like this in the traits configuration:
   ```
    traits:
       container:
         jvm:
           requestCPU: "200m"
           requestMemory: 256Mi
           limitMemory: 256Mi
         native:
           requestCPU: "200m"
           requestMemory: 20Mi
           limitMemory: 20Mi
       quarkus:
         buildMode:
         - jvm
         - native
   ```
   and keep the current configuration for backwards compatibility in case only one buildMode is set.
   
   ### Open questions
   
   _No response_


-- 
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: commits-unsubscribe@camel.apache.org.apache.org

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


Re: [I] Ability to set different resources for jvm and native containers when both are used in the same Integration [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #5065:
URL: https://github.com/apache/camel-k/issues/5065#issuecomment-1892094477

   Okey, thanks for clarifying. Personally I don't think this feature would fit the purpose of the operator as it has to be agnostic on the runtimes details. We are working to move any runtime details off the operator in order to be able to run any other runtime. The logic of Quarkus runtime has to be managed externally. You may use Kustomize for instance or any other tooling to configure the resources based on the type you are executing.


-- 
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: commits-unsubscribe@camel.apache.org

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


Re: [I] Ability to set different resources for jvm and native containers when both are used in the same Integration [camel-k]

Posted by "lsergio (via GitHub)" <gi...@apache.org>.
lsergio commented on issue #5065:
URL: https://github.com/apache/camel-k/issues/5065#issuecomment-1892077981

   @squakez The pipeline tasks actually work on the builder pods. But in this request I'm referring to the final Integration pod, which actually runs the application.


-- 
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: commits-unsubscribe@camel.apache.org

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


Re: [I] Ability to set different resources for jvm and native containers when both are used in the same Integration [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #5065:
URL: https://github.com/apache/camel-k/issues/5065#issuecomment-1891578065

   This is something you can already do using pipeline tasks configuration: https://camel.apache.org/camel-k/next/pipeline/pipeline.html#build-pipeline-trait - in your case it should be something like `-t builder.request-cpu builder:1000m -t builder.request-cpu quarkus-native:2000m ...`.


-- 
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: commits-unsubscribe@camel.apache.org

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


Re: [I] Ability to set different resources for jvm and native containers when both are used in the same Integration [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez closed issue #5065: Ability to set different resources for jvm and native containers when both are used in the same Integration
URL: https://github.com/apache/camel-k/issues/5065


-- 
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: commits-unsubscribe@camel.apache.org

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