Hi All,
AppCloud we are implementing deployment clean up method for Kubernetes,
otherwise it will be a overhead for Kubernetes to keep idle deployments all
the time. We are designing this as Jax-RS service and schedule a cron job
for execute a shell script which calls the Jax-RS service. The deployment
clean up will be based on data which are currently available on AppCloud
database and MSF4J monitoring dashboard database. We are selecting not idle
application based on MSF4J database from REQUESTS_SUMMARY_PER_MINUTE table
based on the following logic.
IF current time - last request time for application <= threshold value
AND average request count > threshold value
Reason for selecting idle applications rather than not idle applications,
we have a situation there are no single request came to a particular
application and it will not record in MSF4J database. So considering that
kind of situations we are getting not idle application set from MSF4J and
it will reduce all application set from AppCloud database. For this
operation we are using HashSet removeAll method.
Appreciate your suggestions on above approach.
--
Best regards,
*Lahiru Manohara*
*Software Engineer*
Mobile: +94716561576
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture