Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. sgmonda
sgmonda

sgmonda

@sgmonda

Chat Follow Unfollow
0
Reputation
3
Posts
1.3k
Profile views
0
Followers
0
Following
Joined 10 Apr 2020, 16:16 Last Online 22 Apr 2020, 06:36

  • Profile
  • More
    • Continue chat with sgmonda
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
sgmonda Follow

Posts made by sgmonda

RE: Seat reservation expired when many servers using the same redis

@endel I didn't know about specifying multiple database using the URI. Thanks!

posted in Questions & Help • 22 Apr 2020, 06:36
RE: Seat reservation expired when many servers using the same redis

For the moment I'm using a single process, but I may scale these games in the future. I'll stop using redis presence now but it looks like a temporal fix. Thanks @endel !
Is there any plan to support different games with a single redis database? It would be very useful when using more than a process per game. I mean something like choosing a namespace in the redis presence configuration:

const gameServer = new Server({
  server: http.createServer(app),
  ...
  presence: new RedisPresence({ namespace: 'my-game-one' }),  // <--
});

That namespace could be used like a preffix in any redis-key used.

posted in Questions & Help • 13 Apr 2020, 10:53
Seat reservation expired when many servers using the same redis

Hello,

I'm using Colyseus for managing multiplayer logic in my one-week game challenge. It worked like a charm when I deployed my first project, but after adding another one I've observed errors sometimes when a user tries to create a new room.

colyseus:errors Error: seat reservation expired.

The funny thing is that I've seen room creation log message in game server A when I was really creating the room in game server B. So I guess something is getting crazy when I use redis presence in both servers.

Am I right? Could redis presence be the source of the problem when two servers use the same redis server? Is there a way, like setting a namespace or similar, to share a redis among many servers?

posted in Questions & Help • 10 Apr 2020, 16:46

© 2023 Endel Dreyer