{"id":16078225,"url":"https://github.com/edouardpoitras/trinityresearch","last_synced_at":"2025-07-27T09:10:36.390Z","repository":{"id":192073821,"uuid":"686003893","full_name":"edouardpoitras/TrinityResearch","owner":"edouardpoitras","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-06T17:17:16.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-10T21:38:00.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edouardpoitras.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-01T14:03:10.000Z","updated_at":"2023-09-01T16:54:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"26563084-f5bb-48be-9830-196d344c8d78","html_url":"https://github.com/edouardpoitras/TrinityResearch","commit_stats":null,"previous_names":["edouardpoitras/trinityresearch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edouardpoitras%2FTrinityResearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edouardpoitras%2FTrinityResearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edouardpoitras%2FTrinityResearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edouardpoitras%2FTrinityResearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edouardpoitras","download_url":"https://codeload.github.com/edouardpoitras/TrinityResearch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325648,"owners_count":20920713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T10:09:14.856Z","updated_at":"2025-04-05T10:43:06.481Z","avatar_url":"https://github.com/edouardpoitras.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction \r\n\r\nTrying to get the DistributedHashtable sample working with a Trinity GE cluster.\r\n\r\nThis is what came out of the discussion in https://github.com/microsoft/GraphEngine/issues/285.\r\nThanks to TaviTruman for most of the code to get this working.\r\n\r\nThis example does not utilize a config. In a production environment you'll probably want to use a proper XML config and load it with TrinityConfig.Load().\r\n\r\n# Build and Test\r\n\r\n### Manual\r\n\r\nHere are the steps to setup a Trinity GE cluster with three nodes, listening on 127.0.0.1:700[0-2].\r\nThe last step runs a simple client and connects to the cluster.\r\n\r\n- Clone GraphEngine: `git clone https://github.com/microsoft/GraphEngine.git`\r\n- Build GraphEngine: `./GraphEngine/tools/build.sh`\r\n- Build the client: `dotnet build DistributedHashtable/DHT.GE.Client`\r\n- Build the server: `dotnet build DistributedHashtable/DHT.GE.Server`\r\n- Run 1st node: `dotnet run --project DistributedHashtable/DHT.GE.Server --no-build -- 127.0.0.1:7001`\r\n- Run 2nd node: `dotnet run --project DistributedHashtable/DHT.GE.Server --no-build -- 127.0.0.1:7002`\r\n- Run head node: `dotnet run --project DistributedHashtable/DHT.GE.Server --no-build -- 127.0.0.1:7000,127.0.0.1:7001,127.0.0.1:7002`\r\n- Run client: `dotnet run --project DistributedHashtable/DHT.GE.Client --no-build -- 127.0.0.1:7000`\r\n\r\n### Docker\r\n\r\nYou can build the docker image locally with `docker build -t trinity .`\r\nThen you can fire up a trinity instance like this:\r\n\r\n    docker run --rm -it -p 7000:7000 trinity dotnet run --no-build --project DistributedHashtable/DHT.GE.Server -- 127.0.0.1:7000\r\n\r\nThis assumes you want to run a server node and host the service on port 7000.\r\n\r\nAnother option is to use docker-compose:\r\n- Start the cluster: `docker-compose up`\r\n- Connect with a client (directly with `dotnet run` or using docker):\r\n    - `dotnet run --no-build --project DistributedHashtable/DHT.GE.Client -- 127.0.0.1:7000` OR\r\n    - `docker run -it --rm trinity1 dotnet run --no-build --project DistributedHashtable/DHT.GE.Client -- \u003cdocker-bridge-ip\u003e:7000`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedouardpoitras%2Ftrinityresearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedouardpoitras%2Ftrinityresearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedouardpoitras%2Ftrinityresearch/lists"}