Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions docs/started/concepts/replication_rules_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,22 @@ The [__RSE Expression__](rse_expressions.md) gets resolved into a set of RSEs,
which are possible destination RSEs for the number of replicas the user wants to
create.

Is possible to find detailed information and examples about how to write RSE
Expressions [__here__](rse_expressions.md).

## Examples

### I want to have 2 replicas of first_dataset and second_dataset on Tier 1 RSEs

The number 2 *second_dataset* is the number of copies expected. At the end, the
RSE Expression select all the Tier 1 RSEs as possible targets to store the
replicas.:

```bash
username@host:~$ rucio add-rule scope:first_dataset scope:second_dataset 2 'tier=1'
username@host:~$ rucio rule add --copies 2 --rses 'tier=1' scope:first_dataset scope:second_dataset
```

To see all the possible targets, **rucio list-rses** command can be used:
To see all possible targets, the command `rucio rse list` can be uses with the same RSE expression:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To see all possible targets, the command `rucio rse list` can be uses with the same RSE expression:
To see all possible targets, the command `rucio rse list` can be used with the same RSE expression:


```bash
username@host:~$ rucio list-rses --rses 'tier=1'
username@host:~$ rucio rse list --rses 'tier=1'
```

### I want to have 2 replicas on whatever T2 RSEs in the UK but not in Glasgow

```bash
username@host:~$ rucio add-rule scope:first_dataset scope:second_dataset 2 'tier=2&country=uk\site=GLASGOW'
username@host:~$ rucio rule add --copies 2 --rses 'tier=2&country=uk\site=GLASGOW' scope:first_dataset scope:second_dataset
```