Comments (6)
It's not pretty but the following seems to enable the running of 2 (or more) instances of different Trinity servers at the same time...
TrinityConfig.HttpPort = 8080 + 1;
#pragma warning disable CS0612 // Type or member is obsolete
TrinityConfig.ServerPort = 5304 + 1;
#pragma warning restore CS0612 // Type or member is obsolete
TDWKMSServer kmsServer = new TDWKMSServer();
kmsServer.Start();
from graphengine.
@mwherman2000 Looks like you want to set up a GE Cluster of two instances on the same machine; have you tried to create a configuration file for the two machines? I know there are a lot of examples using the "trinity.xml" XML file. I can send you an example config file. FYI - I run on one of our Azure VM instances some 15 GE services as Windows Services.
from graphengine.
@mwherman2000 did you get this figured out?
from graphengine.
The 2 port approach is working for now.
from graphengine.
For the record, the following doesn't work: you can't try to start two instances of your server from the same Windows process...
TrinityConfig.HttpPort = 8080 + 1;
#pragma warning disable CS0612 // Type or member is obsolete
TrinityConfig.ServerPort = 5304 + 1;
#pragma warning restore CS0612 // Type or member is obsolete
var agent8081 = new NFELocalStorageAgentImplementation();
agent8081.Start();
TrinityConfig.HttpPort = 8080;
#pragma warning disable CS0612 // Type or member is obsolete
TrinityConfig.ServerPort = 5304;
#pragma warning restore CS0612 // Type or member is obsolete
var agent8080 = new NFELocalStorageAgentImplementation();
agent8080.Start();
from graphengine.
Correct IP ports are not shared. You should explore Availability Groups (Cluster) if you need redundancy and horizontal and or vertical scaling.
from graphengine.
Related Issues (20)
- .Net 5? HOT 30
- build.ps1 on Windows 10: CMake Error: Unknown argument --host=x64 HOT 2
- How is the "include" statement supposed to work across multiple VS projects in the same solution? HOT 1
- [Bug Report] There is a little bug in Network lib HOT 3
- [Bug Report] Wrong Unlock HOT 15
- [Bug Report] Little Bug in TrinityCluster HOT 6
- Using generated C# "struct" classes in a Xamarin Android app? HOT 4
- [Feature Request] Ability to return a TSL service API definition as a Swagger.json file HOT 2
- dataset for freebase-likq sample does not exist HOT 2
- Dataset for freebase-likq sample does not exist HOT 2
- Website certificate is not valid HOT 4
- Bug in FanoutSearch with net6 HOT 11
- Public website certificate is not valid HOT 10
- Windows
- Windows
- Unable to load shared library 'Trinity' or one of its dependencies. when compiling on Ubuntu 22.04 or Wsl HOT 4
- Have an issue running 2 instances of a Trinity console app? HOT 4
- Trojan in trinity.dll HOT 14
- Attempted to read or write protected memory - Very Serious Error :-( HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphengine.