Turn on/off Recording
By default, recording starts automatically after the AREX Java Agent is injected into the application under test.
If you do not need to record traffic immediately after deploying Agent for your applications, you can add: -Darex.config.default.service.collect.sampleRate=0
to arex-api-service
and arex-storage-service
as follows:
arex-api-service:
...
environment:
- JAVA_OPTS=-Darex.mongo.uri=mongodb://arex:iLoveArex@mongodb:27017/arex_storage_db
-Darex.redis.uri=redis://redis:6379/
-Darex.storage.service.url=http://arex-storage-service:8080
-Darex.config.default.service.collect.sampleRate=0
...
arex-storage-service:
...
environment:
- TZ=Asia/Shanghai
- JAVA_OPTS=-Darex.mongo.uri=$AREX_MONGO_URI
-Darex.redis.uri=$AREX_REDIS_URI
-Darex.api.service.api=http://arex-api-service:8080
-Darex.config.default.service.collect.sampleRate=0
...
If you want to turn on the recording function in the future, you can go to the WebUI, and check the time period you want to record in the Recording Settings. Turn off the recording function for the same reason.