Commit Graph

135 Commits

Author SHA1 Message Date
Tux 87ab0e72fd Relicensing under the Eclipse Public License. 2015-10-18 19:52:46 -04:00
Tux cd3f5f1b7e Better firing of network events when we need to resync. 2015-10-03 23:45:34 -04:00
Tux 4e09efe801 Resolve more synchronization issues.
Notably, getLastOnline() is more in sync, putting a probable end to #23!
2015-10-03 23:36:37 -04:00
Tux e285b3f2aa Better resyncing of missing players on the proxy. 2015-09-27 11:49:03 -04:00
Tux 121040ad90 Introduce /rdebug command to expose some pool statistics. 2015-08-02 19:57:48 -04:00
Tux 8f1aff3a11 Simplify getLocalPlayersAsUuidStrings() as it was too redundant. 2015-06-24 07:04:01 -04:00
Tux 21710fcd8e Perform some code tweaks and fix some spelling. 2015-06-24 06:06:34 -04:00
Tux 682d180505 Fix the licensing. 2015-06-24 05:54:43 -04:00
Tux 2c22bc4439 Simplify PubSub code. 2015-06-24 05:54:19 -04:00
Tux 32f0dffd85 Reformatting and corrected several comments and messages. 2015-06-24 05:51:40 -04:00
Tux 982644d31c Add /plist command and plural player count. 2015-06-22 06:06:02 -04:00
Tux ff602bc5e6 Player/internal tweaks:
- Switch to BungeeCord task scheduler, since it's fixed.
- Moved player checks and such to LoginEvent. The login network event is still published from PostLoginEvent.
- Fix a typo. Whee.
2015-06-22 04:35:45 -04:00
Tux 2cbe1997a0 Change thread pool from fixed size of 16 threads to a cached one.
RedisBungee's operations aren't particularly long-lived so this makes more sense. Eventually, this will simply wrap around the BungeeCord scheduler, since most of its pressing issues are resolved.
2015-06-22 04:02:19 -04:00
Tux 85bb0cc14a Move IOUtil to the util package (which is a better location). 2015-06-22 03:39:26 -04:00
Tux d54238023d Squeezed the last bits I possibly can out of the Lua implementation.
Performance enhancements beyond what I've done are welcome.
2015-06-22 00:13:58 -04:00
Tux 59cb27d342 Add a warning to run RedisBungeeClean if the UUID cache exceeds 750,000 entries.
While a large UUID cache will not harm RedisBungee functionality, it can be problematic in some setups, so err on the side of caution.
2015-06-21 22:13:49 -04:00
Tux 8b5eacec40 Introduce a set of performance tweaks.
The most notable changes are a refactor of DataManager to make the caching system easier to tweak, and the ability to use Lua scripts that run on the Redis server to optimize certain batch operations (currently, only getServersToPlayers() uses this).

This also paves the way for me to deprecate old versions of Redis. Anything older than 2.6 is ancient, and even 2.6 is ancient, so it ends up being a net overall benefit.
2015-06-21 17:32:28 -04:00
Tux 27bf52f13d Relicense under the Unlicense. 2015-06-09 19:37:01 -04:00
Tux 712698c76c Changed all previous uses of return(Broken)Resource to try-with-resources 2015-06-06 17:30:45 -04:00
Tux 66996a295c Use try-with-resources in checking. 2015-05-17 14:46:44 -04:00
Tux d111052ead Bump Jedis version (with some caveats). 2015-05-16 21:38:20 -04:00
Tux c46041f802 Revert "[BREAKING] Use nanoTime() for heartbeat checks"
This reverts commit 7c76b245d4.

Conflicts:
	src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java
2015-04-30 19:58:03 -04:00
Tux 1c12aec718 Revert "Correct omission"
This reverts commit 195857a531.

Conflicts:
	src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java
2015-04-30 19:57:39 -04:00
Tux 10466a9464 Add exempted IP addresses (closes #19) and refactored configuration. 2015-04-18 10:13:02 -04:00
Tux 195857a531 Correct omission 2015-04-17 16:35:04 -04:00
Tux 7c76b245d4 [BREAKING] Use nanoTime() for heartbeat checks
This improves Windows and timezone-related support by using a time reference that is more-or-less fixed. You will need to update your network if you update.
2015-04-17 16:34:18 -04:00
PunKeel c6c73cf731 Fix okhttp AccessControlException 2015-03-28 21:46:08 +01:00
vemacs 06c3935c39 add test for UUIDFetcher 2015-02-10 08:04:03 -07:00
vemacs a80c3b51e1 Add a test class 2015-02-04 08:02:30 -07:00
Tux ba825c1880 Convert RedisBungee to okhttp. 2015-01-25 00:18:51 -05:00
Tux b375b5402d Fix some FindBugs issues. 2015-01-25 00:04:34 -05:00
Tux 47fc9792b0 Set default maximum Redis connections to 8. 2014-11-26 17:30:25 -05:00
Tux e630116ff8 Better handling of improperly-fetched Jedis resources. 2014-11-26 17:26:51 -05:00
vemacs cb61d90d6c Unregister listener, revert getCount() changes 2014-11-26 10:00:05 -07:00
vemacs e483b9abeb There seems to be a bug in the BungeeCord scheduler, cancelling all tasks for a plugin doesn't cancel all tasks for a plugin. 2014-11-26 09:28:50 -07:00
vemacs 7df764c418 Don't spam exceptions when pinged after disable 2014-11-26 09:15:53 -07:00
Tux d438186682 Do not allow unsubscribing from RedisBungee internal channels and properly poison the PubSub handler this time. 2014-11-02 14:16:41 -05:00
Tux aa772ddf1b Reformat source code. 2014-09-21 13:56:46 -04:00
Tux e0ee2ada21 Migrate from the consumer model to ExecutorService. The consumer was not flexible and was less reliable. 2014-09-21 13:55:14 -04:00
Tux bafe894298 Removed pipelining and other fixes. 2014-09-11 16:38:40 -04:00
Tux 75939ef661 Detect inconsistency of players who are online but not registered in Redis. 2014-09-11 16:19:50 -04:00
Tux b38ff5d1b4 Add /pproxy command to request the proxy where a player is connected. 2014-08-20 21:31:02 -04:00
Tux 5102c39ee6 Removed player count caching and fixed typo (ported from the efficient-server-listing branch). 2014-08-18 15:33:51 -04:00
Tux ad67e1c60c Removed efficient per-server list fetching. It had too many issues. It will be readded when it can be fixed. 2014-08-14 20:21:56 -04:00
Tux f685661462 Enhanced server listing API (now more efficient) and fixed count issues. 2014-08-10 17:58:45 -04:00
Tux e15b4d23f3 Added missing null check. 2014-08-10 06:27:50 -04:00
Tux b37566b47f BLEEDING: New data caching mechanism for RedisBungee, which will enable greater performance as soon as it has been fleshed out. 2014-08-09 23:16:47 -04:00
Tux befd4d0d26 Store user's proxy in their hash and rename the server: keys to proxy: to make their purpose more clear. 2014-08-09 15:32:12 -04:00
mc-core.com a8a75723fb Added an api method to send messages to a custom PubSub channel. This makes the register channel feature a lot more useful. 2014-07-25 19:00:53 -04:00
Tux 7a710c1ae0 Port RedisBungee to threadGroup branch of BungeeCord 2014-07-09 22:54:12 -04:00