Topology Service CellService client
What does this MR do and why?
Topology Service CellService client
Addressing: #496760 (closed)
How to set up and validate locally
- Check out this branch
496760-topology-service-module-cells-service-class. - Make sure you have Topology Service enabled in GDK
gdk set gitlab_topology_service.enabled true - Enable Topology Service in the Rails application. Make sure you have this in your
gdk.yml
gitlab:
topology_service:
enabled: true
address: 127.0.0.1:9095
- Run
gdk reconfigure - in
gdk/gitlab-topology-service, make sure you havecell-0in yourconfig.toml. GDK doesn't add this yet. You can have these for thecells
[[cells]]
id = 1
name = "cell-0"
address = "gdk.test:12001"
session_prefix = "cell_0_"
sequence_range = [0, 4398046511104]
[[cells]]
id = 100
name = "cell-1"
address = "gdk.test:12001"
session_prefix = "cell_1_"
sequence_range = [0, 4398046511104]
- Restart Topology Service
gdk restart gitlab-topology-service - Run this from your Rails Console
Gitlab::TopologyServiceClient::CellService.new.get_cell_info
You should get something like
=> <Gitlab::Cells::TopologyService::CellInfo: id: 1, name: "cell-0", address: "gdk.test:12001", session_prefix: "cell_0_", sequence_range: <Gitlab::Cells::TopologyService::SequenceRange: minval: 0, maxval: 4398046511104>>
Related to #496760 (closed)
Edited by Omar Qunsul