-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from hcengineering/huly-v377-update
- Loading branch information
Showing
20 changed files
with
335 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Huly Migration | ||
|
||
## v0.6.377 | ||
|
||
### Fulltext Service | ||
|
||
Fulltext search functionality has been extracted into a separate `fulltext` service. This service is now required to be running in order to use the fulltext search functionality. | ||
|
||
Configuration: | ||
|
||
```yaml | ||
fulltext: | ||
image: hardcoreeng/fulltext:${HULY_VERSION} | ||
ports: | ||
- 4700:4700 | ||
environment: | ||
- SERVER_SECRET=${HULY_SECRET} | ||
- DB_URL=mongodb://mongodb:27017 | ||
- FULLTEXT_DB_URL=http://elastic:9200 | ||
- ELASTIC_INDEX_NAME=huly_storage_index | ||
- STORAGE_CONFIG=minio|minio?accessKey=minioadmin&secretKey=minioadmin | ||
- REKONI_URL=http://rekoni:4004 | ||
- ACCOUNTS_URL=http://account:3000 | ||
- STATS_URL=http://stats:4900 | ||
restart: unless-stopped | ||
``` | ||
Update the `transactor` service to use the new `fulltext` service: | ||
|
||
```yaml | ||
transactor: | ||
... | ||
environment: | ||
... | ||
- FULLTEXT_URL=http://fulltext:4700 | ||
# Remove the following lines | ||
# - ELASTIC_URL=http://elastic:9200 | ||
# - ELASTIC_INDEX_NAME=huly_storage_index | ||
# - REKONI_URL=http://rekoni:4004 | ||
``` | ||
|
||
### Statistics Service | ||
|
||
New statistics service has been added. The serivce is responsible for collecting and storing statistics about the usage of the application. | ||
|
||
Configuration: | ||
|
||
```yaml | ||
stats: | ||
image: hardcoreeng/stats:${HULY_VERSION} | ||
ports: | ||
- 4900:4900 | ||
environment: | ||
- PORT=4900 | ||
- SERVER_SECRET=${HULY_SECRET} | ||
restart: unless-stopped | ||
``` | ||
|
||
Other Huly services have been updated to use the new statistics service: | ||
|
||
```yaml | ||
... | ||
environment: | ||
- STATS_URL=http://stats:4900 | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: fulltext | ||
name: fulltext | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: fulltext | ||
template: | ||
metadata: | ||
labels: | ||
app: fulltext | ||
spec: | ||
containers: | ||
- env: | ||
- name: SERVER_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: huly-secret | ||
key: SERVER_SECRET | ||
- name: DB_URL | ||
valueFrom: | ||
configMapKeyRef: | ||
name: huly-config | ||
key: MONGO_URL | ||
- name: FULLTEXT_DB_URL | ||
valueFrom: | ||
configMapKeyRef: | ||
name: huly-config | ||
key: ELASTIC_URL | ||
- name: ELASTIC_INDEX_NAME | ||
valueFrom: | ||
configMapKeyRef: | ||
name: huly-config | ||
key: ELASTIC_INDEX_NAME | ||
- name: STORAGE_CONFIG | ||
valueFrom: | ||
secretKeyRef: | ||
name: huly-secret | ||
key: STORAGE_CONFIG | ||
- name: REKONI_URL | ||
value: http://rekoni | ||
- name: ACCOUNTS_URL | ||
value: http://account | ||
- name: STATS_URL | ||
value: http://stats | ||
image: hardcoreeng/fulltext:v0.6.377 | ||
name: fulltext | ||
ports: | ||
- containerPort: 4700 | ||
hostPort: 4700 | ||
protocol: TCP | ||
resources: | ||
limits: | ||
memory: "512M" | ||
restartPolicy: Always |
Oops, something went wrong.