index.rst 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Node Storage
  2. ============
  3. Sentry provides an abstraction called 'nodestore' which is to storing key/value blobs.
  4. The default backend simply stores them as gzipped blobs in in the 'nodestore_node' table
  5. of your default database.
  6. Django Backend
  7. --------------
  8. The Django backend stores all data in the 'nodestore_node' table, using a the gzipped json blob-as-text pattern.
  9. The backend provides no options, so it should simply be set to an empty dict.
  10. ::
  11. SENTRY_NODESTORE = 'sentry.nodestore.django.DjangoNodeStorage'
  12. SENTRY_NODESTORE_OPTIONS = {}
  13. Riak Backend
  14. ------------
  15. Riak is the recommended backend for installations which have a large data consumption pattern, and would prefer to
  16. scale out, rather than scale up a single SQL node.
  17. Some notes on your Riak installation:
  18. - You will want to the ``eleveldb`` backend as blobs are larger, and compression helps greatly.
  19. - Reads explicitly use ``r=1``.
  20. - We recommend ``w=2`` for writes, but if the data isn't extremely important, ``w=1`` is fine.
  21. ::
  22. SENTRY_NODESTORE = 'sentry.nodestore.riak.RiakNodeStorage'
  23. SENTRY_NODESTORE_OPTIONS = {
  24. # specify each of your Riak nodes, or the address of your load balancer
  25. 'nodes': [{'host':'127.0.0.1','http_port':8098}],
  26. # (optional) specify an alternative bucket name
  27. # 'bucket': 'nodes',
  28. # (optional) change the default resolver
  29. # 'resolver': riak.resolver.last_written_resolver
  30. }