// This file is autogenerated, DO NOT EDIT
// tab-widgets/troubleshooting/data/increase-cluster-shard-limit.asciidoc:172

[source, python]
----
resp = client.cluster.put_settings(
    persistent={
        "cluster.routing.allocation.total_shards_per_node": 400
    },
)
print(resp)
----
