Tensorflow:创建ClusterSpec时是否有设置worker/ps端口的规则?

Tensorflow: is there a rule to set the port of worker/ps when creating ClusterSpec?

在分布式设置中创建ClusterSpec时,我们需要将hostname: port分配给workers/ps。选择port有没有规则?还是可以随意设置为任意数字?

您可以将其设置为启动 tf.train.Server 的主机上的任何可用 TCP 端口。

我通常使用端口2222,因为它很容易输入(这个数字已经出现在我最初写的很多documentation中)。