Skip to content

Commit

Permalink
Bump version to v2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Feb 9, 2024
1 parent da3951c commit 33f413e
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 30 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### [2.8.0] - UNRELEASED
### [2.8.0] - 2024-02-09

#### Added

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ NETWORK := preview
OS := $(shell uname -s | sed 's/Linux/linux/' | sed 's/Darwin/osx/')
ARCH := $(shell uname -m | sed 's/X86/x86_64/' | sed 's/arm64/aarch64/')
NIX_GHC := $(shell echo $(GHC) | sed 's/^\([0-9]\)\.\([0-9]\)\..*/\1\2/')
NIX_SHELL := github:input-output-hk/devx\#ghc$(NIX_GHC)-static-minimal-iog
NIX_SHELL := github:CardanoSolutions/devx\#ghc$(NIX_GHC)-static-minimal-iog
NIX_OPTS := --no-write-lock-file --refresh
VERSION := $(shell cat package.yaml| grep "version:" | sed "s/[^0-9]*\([0-9]\)\(.[0-9].[0-9]\)*\(-.*\)*/\1\2\3/")
TAG := $(shell echo $(VERSION) | sed "s/^0$$/nightly/")
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Finally, [discussions 💡][discussions] contains ongoing discussions regarding
| Architecture | arm64 / amd64 |
| RAM | 256MB-2048MB[^1] |
| CPU | 2+ cores |
| Disk Storage | 1MB-40GB[^2] |
| Disk Storage | 1MB-220GB[^2] |

# Continuous Integration

Expand Down Expand Up @@ -131,4 +131,4 @@ A big thank to [all our sponsors 💖](https://github.com/CardanoSolutions#-spon

[^1]: The maximum memory usage depends on runtime flags and internal settings. This can be made lower if necessary (possibly as small as a hundred megabytes) by tweaking those settings. The obvious counter-part being slower synchronization times when syncing over large chunks of data. When synchronized, however, this has close to no impact.

[^2]: The size of the database depends on the patterns the indexer is configured with. Storing every single entry of Mainnet currently come close to ~40GB. However, if pruned (i.e. only keep unspent entries), Mainnet is around 4GB.
[^2]: The size of the database depends on the patterns the indexer is configured with. Storing every single entry of Mainnet currently come close to ~220GB. However, if pruned (i.e. only keep unspent entries), Mainnet is around 12GB.
2 changes: 1 addition & 1 deletion docs/api/v2.7.1.yaml → docs/api/v2.7.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ servers:

info:
title: Kupo
version: v2.7.1
version: v2.7.2
license:
name: MPL-2.0
url: https://raw.githubusercontent.com/cardanosolutions/kupo/master/LICENSE
Expand Down
107 changes: 88 additions & 19 deletions docs/api/v2.6.1.yaml → docs/api/v2.8.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ servers:

info:
title: Kupo
version: v2.6.1
version: v2.8.0
license:
name: MPL-2.0
url: https://raw.githubusercontent.com/cardanosolutions/kupo/master/LICENSE
Expand Down Expand Up @@ -224,6 +224,25 @@ info:
Kupo will synchronize data directly from Ogmios! Neat isn't it?
## --hydra-host {hostname} / --hydra-port {port-number}
Kupo can also be used to index the layer two ledger available in a
[Hydra](https://github.com/input-output-hk/hydra/#readme) head. For this, we
need to use `--hydra-host` and `--hydra-port` to point to a machine running
a `hydra-node` of a head you want to index and the port of the websocket
API.
For example:
```console
$ kupo \
--hydra-host 0.0.0.0 \
--hydra-port 4001 \
--since origin \
--match * \
--workdir ./db
```
## --help
In case you're lost, don't forget that a summary of this manual is available by running:
Expand Down Expand Up @@ -1258,6 +1277,7 @@ components:
- connection_status
- most_recent_checkpoint
- most_recent_node_tip
- configuration
- version
properties:
connection_status:
Expand All @@ -1278,10 +1298,46 @@ components:
description: Absolute slot number of the current tip of the node.
- type: "null"
description: Absolute slot number of the current tip of the node.
configuration:
type: object
description: A summary of hand-picked configuration parameters.
additionalProperties: false
required:
- indexes
properties:
indexes:
type: string
description: Behaviour surrounding the database query indexes.
enum:
- deferred
- installed
version:
type: string
description: Current software version.

HealthPrometheus:
type: string
description: |
A key-value export compatible with Prometheus.
- `connected` and `disconnected` (from `connection_status`) are encoded as `1.0` and `0.0` respectively.
- `installed` and `deferred` (from `configuration.indexes`) are encoded as `1.0` and `0.0` respectively.
- `version` is not present in the Prometheus metrics.
examples:
response:
value: |
# TYPE kupo_connection_status gauge
kupo_connection_status 1.0
# TYPE kupo_most_recent_checkpoint counter
kupo_most_recent_checkpoint 294998
# TYPE kupo_most_recent_node_tip counter
kupo_most_recent_node_tip 71753381
# TYPE kupo_configuration_indexes gauge
kupo_configuration_indexes 1.0
parameters:
asset-name:
name: asset_name
Expand Down Expand Up @@ -2063,9 +2119,38 @@ paths:
Retrieve Kupo's application health status. Note that this call is cheap and does not halt the various concurrent tasks performed by the Kupo.
This endpoint has two possible content-types: `application/json` or `text/plain`. The latter returns health in a format suitable for [Prometheus](https://prometheus.io/docs/introduction/overview/). The server defaults to `application/json`, but you can control this behavior by passing a corresponding `Accept` header.
In addition, the server may return any of the following response codes:
- 200: when healthy
- 202: when connected to a chain producer but still syncing
- 503: when disconnected from a chain producer
responses:
200:
description: OK
description: Healthy
headers: *default-headers
content:
"application/json;charset=utf-8":
schema:
$ref: "#/components/schemas/Health"

"text/plain;charset=utf-8":
schema:
$ref: "#/components/schemas/HealthPrometheus"

202:
description: Syncing
headers: *default-headers
content:
"application/json;charset=utf-8":
schema:
$ref: "#/components/schemas/Health"

"text/plain;charset=utf-8":
schema:
$ref: "#/components/schemas/HealthPrometheus"

503:
description: Unavailable
headers: *default-headers
content:
"application/json;charset=utf-8":
Expand All @@ -2074,20 +2159,4 @@ paths:

"text/plain;charset=utf-8":
schema:
type: string
description: |
A key-value export compatible with Prometheus.
- `connected` and `disconnected` are encoded as `1.0` and `0.0` respectively.
- `version` is not present in the Prometheus metrics.
examples:
response:
value: |
# TYPE kupo_connection_status gauge
kupo_connection_status 1.0
# TYPE kupo_most_recent_checkpoint counter
kupo_most_recent_checkpoint 294998
# TYPE kupo_most_recent_node_tip counter
kupo_most_recent_node_tip 71753381
$ref: "#/components/schemas/HealthPrometheus"
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@
</script>

<div id="versions">
<a href="#">v2.6.1</a>
<a href="#">v2.7.1</a>
<a href="#">v2.7.2</a>
<a href="#">v2.8.0</a>
<a href="#">nightly</a>
<script>
;[1,2,3].forEach(ix => {
Expand Down
6 changes: 3 additions & 3 deletions kupo.cabal

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
_config: !include ".hpack.config.yaml"

name: kupo
version: 0
version: 2.8.0
stability: stable
github: "cardanosolutions/kupo"
license: MPL-2.0
Expand Down

0 comments on commit 33f413e

Please sign in to comment.