File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,45 @@ e.g. for the recursive chunker.
175
175
chunker-recursive - --chunk-size 2000 --chunk-overlap 100 --log-level DEBUG
176
176
```
177
177
178
+ ### Alternative to modifying ` /etc/hosts `
179
+
180
+ If you don't like the ` /etc/hosts ` hack, there is another way. If you run
181
+ Pulsar in standalone mode, we can just talk to the Pulsar port from inside
182
+ a container or on the host without problems. This means hacking the
183
+ Docker Compose file:
184
+
185
+ - Remove the ` bookie ` service completely.
186
+ - Remove the ` zookeeper ` service completely.
187
+ - Remote the ` pulsar-init ` service completely.
188
+ - Replace the ` pulsar ` service with the configuration below.
189
+ - Add a ` pulsar-data ` volume in the volume section at the end.
190
+ - You can remove the ` zookeeper ` and ` bookie ` volumes as they are not needed.
191
+
192
+ ```
193
+ pulsar:
194
+ command:
195
+ - bin/pulsar
196
+ - standalone
197
+ deploy:
198
+ resources:
199
+ limits:
200
+ cpus: '2.0'
201
+ memory: 1500M
202
+ reservations:
203
+ cpus: '1.0'
204
+ memory: 1500M
205
+ environment:
206
+ PULSAR_MEM: -Xms600M -Xmx600M
207
+ image: docker.io/apachepulsar/pulsar:3.3.1
208
+ ports:
209
+ - 6650:6650
210
+ - 8080:8080
211
+ restart: on-failure:100
212
+ volumes:
213
+ - pulsar-data:/pulsar/data
214
+ ```
215
+
216
+
178
217
### Enough environment to run pytest
179
218
180
219
The process to run the pytest tests involves setting up the
You can’t perform that action at this time.
0 commit comments