Opensearch hosts array

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Data-Prepper 2.7.0

Describe the issue:
Hi, I have a question. You can write one or more opensearch hosts in dataprepper sink pipeline, how does it work? Does it balance the load between them or it just writes to all of the specified hosts? What if one of them returns error, what will happen?