Hi Devs,

We recently found an issue in $subject. The problem was that Memory was
defined in mega bytes in the cartridge definition and it was converted to
bytes internally and sent to Kubernetes. This conversion was done using an
Integer variable and it was reaching its maximum allowed value.

Now I have changed this to be able to specify Memory and CPU with their
Units in the cartridge definition properties section:

"property": [
{ "name": "KUBERNETES_CONTAINER_CPU", "value": "500m" }
,
{ "name": "KUBERNETES_CONTAINER_MEMORY", "value": "4096Mi" }

*Reference:*
http://kubernetes.io/v1.0/docs/design/resources.html

The fix is now available stratos-4.1.x branch with the following commit
revision:
https://github.com/apache/stratos/commit/3af354cf037b27c235e743d311ec141dd505471a

*JIRA:*
https://issues.apache.org/jira/browse/STRATOS-1555

Thanks

-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Reply via email to