Skip to content

Commit be54da5

Browse files
committed
Bug fixing
- Limit CPU - Load Pigs - Update Postman
1 parent 46b87bb commit be54da5

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

NGSI-LD Temporal Functions.postman_collection.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"info": {
3-
"_postman_id": "0246cd2b-6d78-47c3-a320-94c224031884",
3+
"_postman_id": "7bb87fd0-ac87-421d-9f78-b5b8ba57842a",
44
"name": "NGSI-LD Temporal Functions",
55
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
6-
"_exporter_id": "513743",
7-
"_collection_link": "https://www.postman.com/fiware/workspace/fiware-foundation-ev-s-public-workspace/collection/513743-0246cd2b-6d78-47c3-a320-94c224031884?action=share&source=collection_link&creator=513743"
6+
"_exporter_id": "4106882"
87
},
98
"item": [
109
{
@@ -384,7 +383,7 @@
384383
},
385384
{
386385
"key": "Link",
387-
"value": "<https://raw.githubusercontent.com/FIWARE/tutorials.NGSI-LD/master/app/public/data-models/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
386+
"value": "<http://context/user-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
388387
"type": "text"
389388
}
390389
],
@@ -417,7 +416,7 @@
417416
},
418417
{
419418
"key": "Link",
420-
"value": "<https://raw.githubusercontent.com/FIWARE/tutorials.NGSI-LD/master/app/public/data-models/alternate-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
419+
"value": "<http://context/user-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
421420
"type": "text"
422421
}
423422
],
@@ -532,7 +531,7 @@
532531
"header": [
533532
{
534533
"key": "Link",
535-
"value": "<https://raw.githubusercontent.com/FIWARE/tutorials.NGSI-LD/master/app/public/data-models/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json",
534+
"value": " <http://context/user-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
536535
"type": "text"
537536
},
538537
{
@@ -553,12 +552,11 @@
553552
}
554553
],
555554
"url": {
556-
"raw": "http://localhost:1026/ngsi-ld/v1/entities/?georel=near;maxDistance==2000&geometry=Point&coordinates=[13.402,52.471]&type=Animal&q=sex==\"female\";species==\"dairy cattle\"&options=keyValues,count",
555+
"raw": "http://{{context-broker}}/ngsi-ld/v1/entities/?georel=near;maxDistance==2000&geometry=Point&coordinates=[13.402,52.471]&type=Animal&q=sex==\"female\";species==\"dairy cattle\"&options=keyValues,count",
557556
"protocol": "http",
558557
"host": [
559-
"localhost"
558+
"{{context-broker}}"
560559
],
561-
"port": "1026",
562560
"path": [
563561
"ngsi-ld",
564562
"v1",

docker-compose/common.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ services:
7070
ports:
7171
- "${IOTA_NORTH_PORT}:${IOTA_NORTH_PORT}" # localhost:4041
7272
- "${IOTA_SOUTH_PORT}:${IOTA_SOUTH_PORT}" # localhost:7896
73+
deploy:
74+
resources:
75+
limits:
76+
memory: 512M
77+
cpus: '1.0'
78+
reservations:
79+
memory: 256M
80+
cpus: '0.5'
7381
environment:
7482
- IOTA_NORTH_PORT=${IOTA_NORTH_PORT}
7583
- IOTA_REGISTRY_TYPE=mongodb #Whether to hold IoT device info in memory or in a database

import-data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
echo -e "⏳ Loading context data in \033[1mNGSI-LD\033[0m format"
1010
echo -e " - all entity data models are defined referencing the"
1111
echo -e " \033[1m"${TUTORIAL_DATA_MODELS_CONTEXT}"\033[0m JSON-LD context"
12-
echo -e "\nCreating ${COW_COUNT:-4} cows and ${COW_COUNT:-4} pigs"
12+
echo -e "\nCreating ${COW_COUNT:-4} cows and ${PIG_COUNT:-4} pigs"
1313

1414
generate_post_data()
1515
{

0 commit comments

Comments
 (0)