Hi Umesh,
There is nothing like nearest or closest node. In case of partitioned region with optimizeForWrite the function execution tries to happen on node which host primary data, but in case of partioned region the write to primary and secondary buckets are synchronous so there will be network latency in consideration.
If you donot want single hop or optimize for write also, in this case also it can go to any node, but still if the data relies on other node, the call will go and will cause network hops impacting function performance.
So you probably need to do all your performance and failure tests.
Regards,
Rajiv