LogicReinc / LogicReinc.BlendFarm

A stand-alone Blender Network Renderer
GNU General Public License v3.0
412 stars 35 forks source link

Opening a second server instance on the same computer, for GPU of different vendor #101

Closed Charmandrigo closed 5 months ago

Charmandrigo commented 5 months ago

I have a rig that has two cards connected for computing, a Nvidia one and a AMD one, both support Cuda and HIP respectively but I can only run one server at a time, it says address is in use when opening a second console.

Is there a way to run a second server instance in the same computer, like on a different port? I want to know how to switch it, would be really useful have the two servers running on this same computer for rendering

LogicReinc commented 5 months ago

You can modify the settings file and change the port to any other port you like. This should allow you to run 2 servers. There should be a ServerSettings file in your server directory after booting I believe. This is a json file. Changing the "Port" property would use a different port (by default 15000) If it doesn't exist by default, you can create it yourself. Create a file (without extension) called "ServerSettings" in the same directory as the executable. Then put the following text in it:

{
   "Port": 15001
}
Charmandrigo commented 5 months ago

You can modify the settings file and change the port to any other port you like. This should allow you to run 2 servers. There should be a ServerSettings file in your server directory after booting I believe. This is a json file. Changing the "Port" property would use a different port (by default 15000) If it doesn't exist by default, you can create it yourself. Create a file (without extension) called "ServerSettings" in the same directory as the executable. Then put the following text in it:

{
   "Port": 15001
}

only a "versioncache" file is created when running the server

imagen

I attempted to create the json file manually tho it still listens to port 15000

imagen
LogicReinc commented 5 months ago

You have to remove the ".json" extension. The filename should simply be "ServerSettings" without any extension.

Charmandrigo commented 5 months ago
imagen

Did not worked either

Charmandrigo commented 5 months ago

Can you check again with the latest release? Because this hasn't worked of all I have tested

LogicReinc commented 5 months ago

@Charmandrigo Sorry for late reply. I tested changing port and it all appears to work fine. Tested on both Linux and Windows. Since you're on Linux, did you check file permissions? Here is the most basic example of it working: image