Commit Graph

1244 Commits

Author SHA1 Message Date
tidwall ef5a428591 Fix Memory Leak in Kafka Producer
This commit addresses an issue where the sarama kafka library
leaks memory when a connection closes unless the metrics
configuration that was passed to new connection is also closed.

Fixes #613
2021-06-30 14:18:44 -07:00
tidwall df8d3d7b12 Close follower files before finishing aofshrink
fixes #449
2021-06-13 07:53:27 -07:00
tidwall 4490eba0fc 1.24.3 2021-06-09 10:59:07 -07:00
tidwall af43d5a7c7 Fix invalid healthz output 2021-06-09 10:55:07 -07:00
tidwall aaf306a54b 1.24.2 2021-06-07 10:46:41 -07:00
tidwall b6106338d9 Update Go version to 1.16 2021-06-07 10:42:51 -07:00
tidwall 179b2dfb7d 1.24.1 2021-06-07 10:33:10 -07:00
Josh Baker 9ee1d4a6e1
Merge pull request #609 from tidwall/healthz
Added HEALTHZ command
2021-06-07 07:39:01 -07:00
tidwall 27335c37f1 Always OK for leader 2021-05-25 16:42:26 -07:00
tidwall 30c3e81e0d Added HEALTHZ command
Returns 'ok' if the server is the leader or a follower with
a 'caught up' log.

This is mainly for HTTP connections that are using an
orchestration environment like kubernetes, but will work as a
general RESP command.

For HTTP a '200 OK' for 'caught up' and
'500 Internal Server Error' otherwise.

See #608
2021-05-25 16:36:49 -07:00
tidwall 25ba82f41b 1.24.0 2021-05-19 17:11:57 -07:00
Josh Baker 559081e141
Merge pull request #604 from oliver006/oh_prometheus_metrics
Add prometheus metrics
2021-05-14 14:19:44 -07:00
Oliver 70f3188a91 add quick blurb to README 2021-05-13 21:39:26 -04:00
Oliver 56a0ad70c6 fix tests 2021-05-13 21:14:06 -04:00
Oliver de055384f9 add tests 2021-05-13 21:14:06 -04:00
Oliver 6b0282d960 add more metrics, add metrics index page 2021-05-13 21:14:05 -04:00
Oliver 7ec4d58392 cleanup / fix tests 2021-05-13 21:14:05 -04:00
Oliver c3d7b92026 don't rely on stats code for new metrics if we can avoid it 2021-05-13 21:14:05 -04:00
Oliver 30f7226705 add prometheus metrics endpoint 2021-05-13 21:14:04 -04:00
Oliver c78415e26e go fmt 2021-05-13 21:12:49 -04:00
Oliver 13ede90b02 vendor dir 2021-05-13 21:12:49 -04:00
tidwall 476cc499a3 Merge branch 'cep-ter-master't push origin master 2021-05-13 16:32:15 -07:00
Sepehr Rafiee 72a9db084f add deprecation warning for depricated threads flag 2021-05-10 22:17:56 +04:30
Sepehr Rafiee 27cdf6a1a0 remove deprecated threads flag 2021-05-09 07:53:03 +04:30
tidwall b467c6f1cb Change 255 to 256 2021-04-28 05:10:18 -07:00
tidwall 47a4e16c0b Add comment 2021-04-28 05:09:48 -07:00
tidwall 6bdc77d59d Update btree 2021-04-26 10:50:09 -07:00
Josh Baker 296bf3bf02
Delete file 2021-04-21 09:55:49 -07:00
Josh Baker 3756d9da0d
Update README.md 2021-04-10 18:09:21 -07:00
Josh Baker d9c9de654f
Update README.md 2021-04-10 17:43:57 -07:00
Josh Baker 8ae97400e6
Update README.md 2021-04-10 17:42:27 -07:00
tidwall 315c0699b4 Update the client libraries 2021-04-10 17:38:38 -07:00
tidwall 6de3150a23 Merge branch 'mitghi-patch-2' 2021-04-10 17:37:17 -07:00
tidwall 90f6ca5624 Merge branch 'patch-2' of https://github.com/mitghi/tile38 into mitghi-patch-2 2021-04-10 17:04:12 -07:00
tidwall f5c9bb0c25 1.23.0 2021-04-01 15:48:14 -07:00
tidwall d37ce505f5 Allow for all command types for roaming event
Prior to this commit roaming geofences only registered changes to
the SET command. Now it will work for SET/DEL/FSET, just like
non-roaming geofences.

To opt out of these events, explicitly choose which event you
would like to register when you create the geofences.

For example:

  NEARBY fleet FENCE COMMANDS set,del ROAM fleet * 5000

Will only fire off events from SET and DEL command.

Closes #597
2021-04-01 14:59:12 -07:00
tidwall 5a1275bac2 Update BuntDB 2021-04-01 12:30:59 -07:00
tidwall 5e440b621b Remove deprecated function
Go recommends not calling BuildNameToCertificate and to allow
for the names to be selected automatically.
2021-03-31 08:15:52 -07:00
tidwall 6b08f7fa9e Code cleanup
- Removed unused functions and variables
- Wrapped client formatted errors
- Updated deprecated packages
- Changed suggested code patterns
2021-03-31 08:13:44 -07:00
tidwall e1d9756c6d Merge branch 'fix/distance' of https://github.com/iwpnd/tile38 into iwpnd-fix/distance 2021-03-31 06:23:52 -07:00
tidwall 87a3ed5f0a Fix invalid queue.db error 2021-03-30 15:38:42 -07:00
tidwall 40105e6b7e Include "distance" to output when user specifically requests
fixes #599
2021-03-30 11:49:01 -07:00
tidwall 84a5120bc3 Fix tile38-cli output showing protocol size when piping
fixes #603
2021-03-30 08:59:25 -07:00
tidwall bac9cebc51 Upgrade go.mod 2021-03-30 08:09:03 -07:00
tidwall 31a0fbd228 Upgrade gjson 2021-03-30 07:17:01 -07:00
Josh Baker f4b7efeb8c
Create FUNDING.yml 2021-03-28 09:00:29 -07:00
Benjamin Ramser 2a8b98778b fix: distance if point and object have the same coordinates 2021-03-19 09:42:38 +01:00
tidwall 53af1e2306 Merge branch 'iwpnd-kafka-tls' 2021-02-18 15:34:34 -07:00
tidwall 0d69799653 Merge branch 'kafka-tls' of https://github.com/iwpnd/tile38 into iwpnd-kafka-tls 2021-02-18 15:34:09 -07:00
tidwall 9ac25647ad Expose log output writer 2021-02-18 15:34:01 -07:00