Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. sgmonda
    sgmonda

    sgmonda

    @sgmonda

    Chat Follow Unfollow
    0
    Reputation
    3
    Posts
    1317
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • 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 •
    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 •
    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 •