# Creating a Snowflake Sequence in a New Cluster

> Before you use Snowflake sequences, each node in your cluster must have a unique snowflake.node identifier.

---

LLMS index: [llms.txt](/llms.txt)

---

> Upstream reference for Snowflake 2.6.1. Mimus 19.0.1 integrates [Spock 5.0.15](/docs/spock/). Compatibility of Snowflake with Mimus is unverified.

Before you use Snowflake sequences, each node in your cluster must have a unique `snowflake.node` identifier. The value ranges from 1 to 1023, and it must be distinct on every node in the cluster.

## Setting snowflake.node in a managed deployment {#setting-snowflakenode-in-a-managed-deployment}

A pgEdge deployment assigns `snowflake.node` for you, deriving the value from each node's place in the cluster:

* the Control Plane sets `snowflake.node` from the node ordinal.
* pgEdge Helm charts derive `snowflake.node` from each node name.
* pgEdge Ansible playbooks set `snowflake.node` from the node zone.

When you deploy with one of these methods, no further action is needed to configure the node identifier.

## Setting snowflake.node manually {#setting-snowflakenode-manually}

For a self-managed or from-source installation, set the value yourself. Use `ALTER SYSTEM` to assign a unique node number, then reload the server so the change takes effect. The following example sets the node identifier to `10`:

```sql
ALTER SYSTEM SET snowflake.node = 10;
SELECT pg_reload_conf();
```

You can also add the parameter to the `postgresql.conf` file directly. The following line identifies the host as node `11`:

```ini
snowflake.node = 11
```

After you edit `postgresql.conf`, reload the server for the change to take effect. You can reload from psql:

```sql
SELECT pg_reload_conf();
```

You can also reload the server with `pg_ctl`:

```sh
pg_ctl reload -D "/path/to/your/data/directory"
```

Once Snowflake is configured, you can begin to use Snowflake sequences by first [converting](/docs/spock/upstream/snowflake/converting/) them from Postgres sequences.

---

[Upstream source](https://github.com/pgEdge/snowflake/blob/9506e1bd5c1f8f8c22df43bdc3efd2b00398ddd8/docs/creating.md) · `9506e1bd5c1f` · Copyright (c) 2023–2026, pgEdge, Inc.; portions Copyright the PostgreSQL Global Development Group and The Regents of the University of California. [PostgreSQL License](/docs/spock/upstream/about/license/).

[PG.CENTER edition](https://github.com/pgsty/doc.pg.center/blob/4410c32dc9186a22859008303f474b72a779f583/content/pgedge/snowflake/creating.md)

---

Backlinks:

- [Snowflake](/docs/spock/upstream/snowflake/)
