> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# max_skip_* session settings

> ClickHouse session settings in the max_skip_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## max\_skip\_unavailable\_shards\_num

Type

UInt64

Default

0

When `skip_unavailable_shards` is enabled, limits the maximum number of shards that can be silently skipped.
If the number of unavailable shards exceeds this value, an exception is thrown instead of silently skipping.

A value of 0 means no limit on the count. On a read, skipping *every* shard before any of them returned data still throws `ALL_CONNECTION_TRIES_FAILED`, because such a query has no partial result to return. This limit applies to reads only.

## max\_skip\_unavailable\_shards\_ratio

Type

Float

Default

0

When `skip_unavailable_shards` is enabled, limits the maximum ratio (0 to 1) of shards that can be silently skipped.
If the ratio of unavailable shards to total shards exceeds this value, an exception is thrown instead of silently skipping.

A value of 0 means no limit on the ratio. On a read, skipping *every* shard before any of them returned data still throws `ALL_CONNECTION_TRIES_FAILED`, because such a query has no partial result to return. This limit applies to reads only.
