You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-13Lines changed: 21 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,14 +132,21 @@ sudo rpm -e blxrep
132
132
133
133
blxrep uses a configuration file located at `/etc/blxrep/config.yaml` by default. You can specify a different configuration file using the `--config` flag.
134
134
135
-
Example configuration:
135
+
Example configuration for agent:
136
136
137
137
```yaml
138
-
mode: "dispatcher" # or "agent"
139
-
id: "agent1" # required for agent mode
140
-
dispatcher-addr: "localhost:8080" # required for agent mode
141
-
data-dir: "/data" # required for dispatcher mode
142
-
policy-dir: "/etc/blxrep/policies" # required for dispatcher mode
138
+
mode: "agent"
139
+
id: "hostname"
140
+
dispatcher-addr: "localhost:8080"
141
+
data-dir: "/data"
142
+
```
143
+
144
+
Example configuration for dispatcher:
145
+
146
+
```yaml
147
+
mode: "dispatcher"
148
+
data-dir: "/data"
149
+
policy-dir: "/etc/blxrep/policies"
143
150
```
144
151
145
152
## Usage
@@ -153,13 +160,14 @@ blxrep start [flags]
153
160
```
154
161
155
162
Flags:
156
-
- `--mode`: Start mode ('dispatcher' or 'agent')
157
-
- `--id`: Agent ID (required for agent mode)
158
-
- `--dispatcher-addr`: Dispatcher address (required for agent mode, format: host:port)
159
-
- `--data-dir`: Data directory (required for dispatcher mode)
160
-
- `--sync-freq`: Sync frequency in minutes (required for dispatcher mode)
161
-
- `--policy-dir`: Policy directory (required for dispatcher mode)
162
-
- `--config`: Configuration file (optional)
163
+
| Flag | Description | Required For |
164
+
|------|-------------|--------------|
165
+
| `--mode` | Start mode ('dispatcher' or 'agent') | Both |
0 commit comments