oakestra / oakestra-net

Networking component of Oakestra
Apache License 2.0
6 stars 8 forks source link

Avoid flooding the cluster service manager for unknown routes #28

Closed giobart closed 2 years ago

giobart commented 2 years ago

Short

The cluster service manager is flooded with requests in the event of unknown ServiceIP. Let's use the interest registration mechanism to avoid repeated queries.

Proposal

Currently, the worker node that requires information on a specific route registers an interest. Anyway, I a service requires to contact an unknown ServiceIP, the cache miss trigger every time a new query. Let's use the interest registration mechanism in such a way that if the interest is registered, but the cache miss happens, no further query is sent and the communication simply fails.

Ratio

This reduces the burden drastically on the Cluster Service Manager in the event of unknown ServiceIP call.

Impact

Only the Node Net Manager component needs to be updated.

Development time

1 Day of work (development and testing)

Status

Analysing the feasibility

Checklist

giobart commented 2 years ago

Branch: 28_avoid_flooding_the_cluster_service_manager_for_unknown_routes