| **kafka.yml** | Configurations for Kafka username, password, address, etc. |
| **kafka.yml** | Configuration for Kafka username, password, address, etc. |
| **redis.yml** | Configurations for Redis password, address, etc. |
| **redis.yml** | Configuration for Redis password, address, etc. |
| **minio.yml** | Configurations for MinIO username, password, address, and external IP/domain; failing to modify external IP or domain may cause image file sending failures |
| **minio.yml** | Configuration for MinIO username, password, address, etc. |
| **zookeeper.yml** | Configurations for ZooKeeper user, password, address, etc. |
| **mongodb.yml** | Configuration for MongoDB username, password, address, etc. |
| **mongodb.yml** | Configurations for MongoDB username, password, address, etc. |
| **discovery.yml** | Service discovery and etcd credentials and address. |
| **log.yml** | Configurations for log level and storage directory. |
| **notification.yml** | Configurations for events like adding friends, creating groups, etc. |
## OpenIMServer Related Configurations
| **share.yml** | Common configurations needed by various OpenIM services, such as secret. |
| Configuration File | Description |
| **webhooks.yml** | Configurations for URLs in Webhook. |
| **openim-rpc-msg.yml** | Configurations for listening IP, port, and whether to verify friendship before sending messages in openim-rpc-msg service. |
To start multiple instances of an OpenIM service, simply increase the corresponding port numbers and modify the `start-config.yml` file in the project root directory. Restart the service to take effect. For example, the configuration to start 2 instances of `openim-rpc-user` is as follows:
| Whether new group members can view historical messages | `openim-rpc-group.yml` |
| Token expiration time settings | `openim-rpc-auth.yml` |
| Scheduled task settings (e.g., how long to retain messages) | `openim-crontask.yml` |
## Starting Multiple Instances of a Service and Maximum File Descriptors
To start multiple instances of an OpenIM service, simply add the corresponding port numbers and modify the `start-config.yml` file in the project’s root directory,
then restart the service. For example, to start 2 instances of `openim-rpc-user`:
```yaml
```yaml
rpc:
rpc:
@ -55,9 +73,15 @@ prometheus:
ports: [ 20100, 20101 ]
ports: [ 20100, 20101 ]
```
```
Modify`start-config.yml`:
Modify`start-config.yml`:
```yaml
```yaml
serviceBinaries:
serviceBinaries:
openim-rpc-user: 2
openim-rpc-user: 2
```
```
To set the maximum number of open file descriptors (typically one per online user):