tf.data.experimental.service.WorkerConfig
Stay organized with collections
Save and categorize content based on your preferences.
Configuration class for tf.data service dispatchers.
tf.data.experimental.service.WorkerConfig(
dispatcher_address, worker_address=None, port=0, protocol=None,
heartbeat_interval_ms=None, dispatcher_timeout_ms=None
)
Fields:
dispatcher_address
: Specifies the address of the dispatcher.
worker_address
: Specifies the address of the worker server. This address is
passed to the dispatcher so that the dispatcher can tell clients how to
connect to this worker.
port
: Specifies the port to bind to. A value of 0 indicates that the worker
can bind to any available port.
protocol
: (Optional.) Specifies the protocol to be used by the server, e.g.
"grpc".
heartbeat_interval_ms
: How often the worker should heartbeat to the
dispatcher, in milliseconds. If not set, the runtime will select a
reasonable default. A higher value will reduce the load on the dispatcher,
while a lower value will reduce the time it takes to reclaim resources
from finished jobs.
dispatcher_timeout_ms
: How long, in milliseconds, to retry requests to the
dispatcher before giving up and reporting an error. Defaults to 1 hour.
Attributes |
dispatcher_address
|
|
worker_address
|
|
port
|
|
protocol
|
|
heartbeat_interval_ms
|
|
dispatcher_timeout_ms
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-08-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-08-16 UTC."],[],[]]