Upgrading chat servers, new IPs

FYI, I wanted to give you a heads up that we finally received some bigger, faster servers for the chat system. We plan on rolling them out over the next 24 hours. Unfortunately, our systems are set up that new servers need new IPs so you’ll need to update your bots to use the correct IPs.

Since we’ll be adding boxes and taking away boxes in several steps (for a graceful rotation), I’d recommend updating your bots use the https://api.twitch.tv/api/channels/some_channel/chat_properties (replace some_channel with an actual channel name) API which returns the list of servers available for a specific channel. This way we are not required to coordinate server changes with bot updates.

In any case, I’ll also post updates here when we have added / removed the servers during the migration.

Let me know if you have any questions.

2 Likes

Can you make sure port 6667 is open on the new servers, as we’ve evidenced in the past that port 6667 is firewalled with every new server added to the chat cluster.

So, what are the new IPs? Can we connect to them already, and will they be connected/synced with the older servers while those are taken down?

Using chat_properties and shooting off tens of thousands of requests for every channel you want to join is not an option.

I also assume you’re not separating a channel to a specific server, like the horrible system on JTV, and giving us 24 hour notice with a forum post? Cause that’d be bad.

The chat_properties API will return one of 2 sets of servers (either event or main chat). The new IPs aren’t set in stone yet, so I’ll add to this thread as we roll things out.

You can probably just hardcode:

https://api.twitch.tv/api/channels/night/chat_properties (main chat cluster)
https://api.twitch.tv/api/channels/riotgames/chat_properties (event chat cluster)

This will be a “graceful” transition, so we will not split rooms as we add new servers.

Alright, thanks, it shouldn’t be an issue then

The first batch of new servers are going out any moment:

Main cluster

Adding:

  • 192.16.64.152
  • 192.16.64.145
  • 192.16.64.144
  • 192.16.64.11
    Removing:
  • 199.9.253.165
  • 199.9.249.252
  • 199.9.249.253
  • 199.9.252.120

Event cluster

Adding:

  • 192.16.64.150
  • 192.16.64.143
    Removing:
  • 199.9.252.26
  • 199.9.251.213

Looks to be working fine. I just switched the old IP with a new, and I’ve had no issues yet.

The second batch of new servers have gone out:

Main cluster

Adding:

  • 192.16.64.155
  • 192.16.64.51
  • 192.16.64.37
  • 192.16.64.45
    Removing:
  • 199.9.250.229
  • 199.9.250.239
  • 199.9.252.28
  • 199.9.249.126

Event cluster

Adding:

  • 199.9.252.54
  • 192.16.71.236
  • 192.16.71.221
    Removing:
  • 199.9.250.117
  • 199.9.249.117
  • 199.9.249.121

The last batch of new servers have gone out:

Main cluster

Adding:

  • 199.9.248.236
  • 192.16.71.237
  • 199.9.251.168
  • 192.16.64.146
    Removing:
  • 199.9.249.142
  • 199.9.249.222
  • 199.9.251.189

Hello,

I have tried to connect my bot using:
192.16.64.145:80 and 192.16.64.145:443

But i was not able to connect? What IP Port must i use?

https://api.twitch.tv/api/channels/terrible__khons/chat_properties

EDIT: it runs now with:
irc.twitch.tv:443

My bots use irc.twitch.tv - what exactly is the use of these chat servers for bots?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.