SIENTIAPDE-1174
SIENTIAPDE-1174 Update replica count and enhance logging in MLFlow - Changed replicaCount in values.yaml from 3 to 1 for reduced resource usage. - Added debug logging for prediction response data in MLFlow to improve traceability.
This commit is contained in:
@@ -95,6 +95,7 @@ class MLFlow(BaseActivity):
|
|||||||
response_data = self.model_monitoring_repository.predict(
|
response_data = self.model_monitoring_repository.predict(
|
||||||
model_name, data, model_retention)
|
model_name, data, model_retention)
|
||||||
|
|
||||||
|
self.debug("Prediction response data:", metadata)
|
||||||
self.debug(response_data, metadata)
|
self.debug(response_data, metadata)
|
||||||
|
|
||||||
return response_data
|
return response_data
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class MLFlowRepository():
|
|||||||
try:
|
try:
|
||||||
start_time = datetime.now()
|
start_time = datetime.now()
|
||||||
data = self.model_serving.get_cached_predict(
|
data = self.model_serving.get_cached_predict(
|
||||||
model_name, data, model_retention)[0:1]
|
model_name, data, model_retention)
|
||||||
|
|
||||||
end_time = datetime.now()
|
end_time = datetime.now()
|
||||||
data = pd.DataFrame(data, columns=['prediction'])
|
data = pd.DataFrame(data, columns=['prediction'])
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Declare variables to be passed into your templates.
|
# Declare variables to be passed into your templates.
|
||||||
|
|
||||||
# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
|
# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
|
||||||
replicaCount: 3
|
replicaCount: 1
|
||||||
|
|
||||||
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
|
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
|
||||||
image:
|
image:
|
||||||
|
|||||||
Reference in New Issue
Block a user