{"id":19523883,"url":"https://github.com/eitansuez/simple-multisite","last_synced_at":"2025-07-02T06:36:26.855Z","repository":{"id":96637790,"uuid":"85253983","full_name":"eitansuez/simple-multisite","owner":"eitansuez","description":"Simple Example of a GemFire Multi-Site configuration that you can run on a single machine, for learning","archived":false,"fork":false,"pushed_at":"2017-08-26T21:37:09.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T01:27:03.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/eitansuez.png","metadata":{"files":{"readme":"README.adoc","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":"2017-03-17T00:29:03.000Z","updated_at":"2017-03-17T00:29:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"01689f71-ce32-4525-a373-156e4e320913","html_url":"https://github.com/eitansuez/simple-multisite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eitansuez/simple-multisite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fsimple-multisite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fsimple-multisite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fsimple-multisite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fsimple-multisite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eitansuez","download_url":"https://codeload.github.com/eitansuez/simple-multisite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fsimple-multisite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263088141,"owners_count":23412001,"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-11-11T00:45:04.703Z","updated_at":"2025-07-02T06:36:26.834Z","avatar_url":"https://github.com/eitansuez.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n= MultiSite w/GemFire\n\nA simple example implementation of GemFire's multi-site WAN topology, which can be run on a local machine, primarily for learning purposes.\n\n== Configuration\n\n.Site 1:\n1 Locator (default port), 2 Servers, with Gateway Senders\n\n.Site 2:\n1 Locator, 2 Servers, with Gateway Receivers\n\n\n== Steps\n\n. Install Gradle\n\n. Start first site's cluster:\n+\n----\ncd site1\n./start.sh\n----\n\n. In a separate console, start second site's cluster:\n+\n----\ncd site2\n./start.sh\n----\n\n. At this point you have the definition of one region: _Customer_ on both clusters.  You can log in to each cluster using gfsh, connect, and verify that the region exists, and can also list gateways.\n+\n.On \"site1\":\n----\ngfsh\nconnect\nlist members\nlist regions\nlist gateways\n----\n+\n.On \"site2\":\n----\ngfsh\nconnect --locator=localhost[20334]\nlist members\nlist regions\nlist gateways\n----\n\n. Verify there's no data in the region (on both clusters), with:\n+\n----\nquery --query=\"select * from /Customer\"\n----\n\n. On site2, a CacheListener is attached to the Customer region to log the event when a cache entry is created, updated, or deleted.  So, in separate consoles, tail the server logs for site 2:\n+\n----\ntail -f site2/server1/server1.log\ntail -f site2/server2/server2.log\n----\n\n. Run a client to load a Customer object into the first cluster, and watch the cache listener on site2 notify you that it received a copy:\n+\n----\ncd client\ngradle dataload\n----\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feitansuez%2Fsimple-multisite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feitansuez%2Fsimple-multisite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feitansuez%2Fsimple-multisite/lists"}