Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for Production Configuration Files #249

Closed
bobbeck55 opened this issue Mar 1, 2023 · 1 comment
Closed

Request for Production Configuration Files #249

bobbeck55 opened this issue Mar 1, 2023 · 1 comment

Comments

@bobbeck55
Copy link

Hi,

Can you send me the config files for the production config of quack/mongo
that you mentioned in a previous email? Attached is the diagram you sent.

Bob

Webapp

@azee
Copy link
Collaborator

azee commented Mar 5, 2023

Hi Bob,

With the schema above your current configuration will change insignificantly.

  1. First, you'll have to point your config to a Mongo replica set. It could be either a list of hosts (in that case Driver will auto-detect the master node) or a connection URI (e.g., if you set up Mongo using mongo cloud https://www.mongodb.com/cloud/)

so either
mongo.replicaSet=MONGO_HOST_IP1:27017,MONGO_HOST_IP2:27017,MONGO_HOST_IP3:27017
or
mongo.uri=mongodb+srv://some_uri_given_you_by_mongo_provider_or_your_local_dba

  1. Second, you'll have to set up Hazelcast Session Provider. It will allow all your quack instanced share authenticated users sessions

whoru.session.provider=ru.greatbit.whoru.auth.providers.HazelcastSessionProvider

These are optional - use default values as stated below:
hazelcast.group.name=dev
hazelcast.group.password=dev-pass
hazelcast.ttl.sec=1209600
hazelcast.port=5903
hazelcast.port.rest=5904
hazelcast.port.auto.increment=true
hazelcast.backup.count=1
hazelcast.prefer.ipv4.stack=true

If you know IP addresses of all QuAck instances your are running - just list them comma separated here:
hazelcast.members=IP_ADDRESS_1,IPADDRESS_2,IPADDRESS_3
hazelcast.interface=127.0.0.1

If you have a dynamic IP addresses range (e.g. - private VPC) - you can configure an auto-discovery like (in this example VPC has range 10.0.0.0. 10.0.255.255)
hazelcast.members=127.0.0.1
hazelcast.interface=10.0...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants