Giter Club home page Giter Club logo

Comments (6)

mwherman2000 avatar mwherman2000 commented on July 22, 2024

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.

TaviTruman avatar TaviTruman commented on July 22, 2024

@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.

TaviTruman avatar TaviTruman commented on July 22, 2024

@mwherman2000 did you get this figured out?

from graphengine.

mwherman2000 avatar mwherman2000 commented on July 22, 2024

The 2 port approach is working for now.

from graphengine.

mwherman2000 avatar mwherman2000 commented on July 22, 2024

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.

TaviTruman avatar TaviTruman commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.