Commit Graph

1157 Commits

Author SHA1 Message Date
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
Benjamin Ramser d7c0c5b855 refactor: dont set client id 2021-02-18 22:35:49 +01:00
Benjamin Ramser 734d33365a add kafka tls config
fix endpoint, add logging to tlsconfig creation

add logging if log.Level > 2
2021-02-17 14:35:42 +01:00
tidwall d211858db6 1.22.6 2021-02-07 18:07:24 -07:00
tidwall 72dfaaec63 Updated dependencies 2021-02-07 17:54:56 -07:00
tidwall 4f8bc0531e Updated rtree library 2021-02-04 09:50:13 -07:00
tidwall b37e7395a3 Updated rtree library 2021-02-04 08:21:08 -07:00
tidwall 3ed048242e Various updates
- Updated all dependencies
- Updated geoindex Box api
2021-02-03 14:30:55 -07:00
tidwall 263bbd9dcc Updated packages 2021-01-25 15:11:55 -07:00
tidwall 016f397124 Replace tinybtree 2021-01-25 14:34:40 -07:00
tidwall 6736aef801 Revert logo 2020-12-12 15:50:43 -07:00
tidwall 0a9103aaf7 Add light/dark logos 2020-12-12 15:33:57 -07:00
tidwall b8ba0e2214 Add safe border around logo 2020-12-12 15:30:34 -07:00
tidwall 5b37cb3045 Vector logo with dark mode 2020-12-12 14:52:20 -07:00
Josh Baker fe66c9189b
Update config.yml 2020-12-05 07:23:29 -07:00
Josh Baker 24b0499cf9
Create config.yml 2020-12-05 07:22:52 -07:00
Josh Baker c17959d96d
Update README.md
Update slack link
2020-11-30 16:05:11 -07:00
tidwall 6092f734e3 Better handle connection errors in tile38-cli
This commit fixes an issue with the tile38-cli where it will
continually print "Could not connect to Tile38..." when it was
unable to connect to the tile38-server.

It now cleanly prints the message only once.
2020-11-24 10:27:07 -07:00
tidwall 6c653ab268 1.22.5 2020-11-09 14:47:46 -07:00
tidwall 9ce20331e4 Fixed fields being shuffled after AOFSHRINK 2020-11-09 14:45:40 -07:00
tidwall dd53091be1 1.22.4 2020-11-07 05:30:23 -07:00
tidwall 1a7d8d6431 Added ENV var for 500 http errors 2020-11-07 05:22:11 -07:00
Josh Baker 5e03207a8a
Merge pull request #585 from tidwall/fix-fences-test
enable fence tests
2020-11-03 15:51:40 -07:00
tidwall 4f4954020f enable fence tests 2020-11-03 14:56:31 -07:00
tidwall 4504ea75ac Updated Github Action files
Disabled some fence tests due to them hanging and
timing out in the Github Actions workflow, which is
something that did not happen with Travis CI.

I suspect that there's something up with Go routines
and or num of CPUs in the GH virtual environment.

Tests pass locally though
2020-11-03 14:36:07 -07:00
Josh Baker 201d0b5821
Update go.yml 2020-11-03 13:15:08 -07:00
Josh Baker 1fae26d657
Update go.yml 2020-11-03 12:35:03 -07:00
Josh Baker c56f08b935
Update go.yml 2020-11-03 12:28:57 -07:00
Josh Baker ac67755764
Create go.yml 2020-11-03 12:27:45 -07:00
Josh Baker 927f61033f
Delete .travis.yml 2020-11-03 12:25:17 -07:00
Josh Baker 69ecc04928
Update README.md 2020-11-03 12:24:51 -07:00
tidwall 982980789b 1.22.3 2020-10-28 08:46:45 -07:00
tidwall 79bee8523b Updated btree deps 2020-10-27 15:29:50 -07:00
tidwall 9998e03f6f Optimization for non-cross geofence detection
This commit fixes a performance issue with the algorithm that
determines with geofences are potential candidates for
notifications following a SET operation.

Details

Prior to commit b471873 (10 commits ago) there was a bug where
the "cross" detection was not firing in all cases. This happened
because when looking for candidates for "cross" due to a SET
operation, only the geofences that overlapped the previous
position of the object and the geofences that overlapped the new
position where searched. But, in fac, all of the geofences that
overlapped the union rectangle of the old and new position should
have been searched.

That commit fixed the problem by searching a union rect of the
old and new positions. While this is an accurate solution, it
caused a slowdown on systems that have big/wild position changes
that might cross a huge number of geofences, even when those
geofences did not need actually need "cross" detection.

The fix

With this commit the geofences that have a "cross" detection
are stored in a seperated tree from those that do not. This
allows for a hybrid of the functionality prior and post b471873.

Fixes #583
2020-10-23 09:51:27 -07:00
tidwall 100be7be3c Added tests 2020-10-23 09:50:51 -07:00
tidwall 5b77c446a7 1.22.2 2020-10-07 10:12:47 -07:00
tidwall 93e3a067b7 Truncate trailing zeros from AOF at startup
This commit addresses issue #230, where an AOF file will sometimes
not load due to the file being padded with trailing zeros. It's
uncertain what is causing this corruption, but it appears to be
coming from outside of the tile38-server process. I suspect it's
due to some block store layer in Kubernetes/Docker cloud
environments.

This fix allows for Tile38 to start up by discovering the trailing
zeros while loading the AOF and safely truncating the file as to
not include the zeros in the future.
2020-10-07 09:52:32 -07:00
tidwall 3f87be18b4 Fixed typo 2020-09-22 16:55:31 -07:00