Skip to content

Commit 5650a9b

Browse files
committed
Mention Pulsar standalone
1 parent f9db76a commit 5650a9b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

community/development-guide.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,45 @@ e.g. for the recursive chunker.
175175
chunker-recursive - --chunk-size 2000 --chunk-overlap 100 --log-level DEBUG
176176
```
177177

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+
178217
### Enough environment to run pytest
179218

180219
The process to run the pytest tests involves setting up the

0 commit comments

Comments
 (0)