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
This will publish **all** account updates, transactions, and slot status to Kafka. Perfect for testing and development.
25
+
5
26
## Installation
6
27
7
28
### Binary releases
@@ -40,6 +61,10 @@ Config is specified via the plugin's JSON config file.
40
61
41
62
### Example Config
42
63
64
+
**⚠️ WARNING: This example config will NOT publish most data by default!**
65
+
66
+
The following config is a minimal example that demonstrates the structure, but with `publish_all_accounts: false` and no `program_filters`, you'll only see slot status updates. For testing, consider using the scenarios below.
-**Cost Optimization**: Analyze transaction pricing and efficiency
303
+
304
+
## Troubleshooting
305
+
306
+
### Common Issues
307
+
308
+
#### 1. No Data in Kafka Topics
309
+
310
+
**Symptoms**: Solana validator shows slot processing but no messages appear in Kafka topics.
311
+
312
+
**Causes & Solutions**:
313
+
-**Filtering too restrictive**: Set `publish_all_accounts: true` or add specific `program_filters`
314
+
-**Wrong topic names**: Verify your topic names match exactly
315
+
-**Kafka connection issues**: Check if Kafka is running and accessible
316
+
-**Plugin not loaded**: Verify the plugin path in `libpath` is correct
317
+
318
+
**Quick Test**: Use the Quick Start config above to verify the plugin works.
319
+
320
+
#### 2. Only Slot Status Messages Appear
321
+
322
+
**Cause**: This is expected behavior with the default example config! Slot status is always published, but account updates and transactions require explicit filter configuration.
323
+
324
+
**Solution**: Add `publish_all_accounts: true` or configure `program_filters`.
325
+
326
+
#### 3. Plugin Fails to Load
327
+
328
+
**Common Causes**:
329
+
-**Version mismatch**: Ensure Solana and plugin are built with identical Rust/Solana versions
330
+
-**Library path**: Check `libpath` points to the correct `.so` or `.dylib` file
331
+
-**Permissions**: Ensure the plugin file is readable by the Solana process
332
+
333
+
#### 4. High Memory Usage
334
+
335
+
**Cause**: Large Kafka producer buffers can consume significant memory.
336
+
337
+
**Solution**: Adjust buffer settings:
338
+
```json
339
+
{
340
+
"kafka": {
341
+
"queue.buffering.max.messages": "10000",
342
+
"queue.buffering.max.kbytes": "1048576"
343
+
}
344
+
}
345
+
```
346
+
347
+
### Debugging Tips
348
+
349
+
1.**Start Simple**: Begin with `publish_all_accounts: true` to verify basic functionality
350
+
2.**Check Topics**: Use Kafdrop or `kafka-console-consumer` to verify topics exist
351
+
3.**Monitor Metrics**: Enable Prometheus metrics to see message counts and errors
352
+
4.**Verify Filters**: Double-check your filter configuration matches your expectations
353
+
354
+
### Getting Help
355
+
356
+
If you're still having issues:
357
+
1. Check this troubleshooting section
358
+
2. Review the filtering documentation above
359
+
3. Try the Quick Start configuration
360
+
4. Open an issue with your config and error details
0 commit comments