Merge pull request #145 from ClusterCockpit/hotfix

Hotfix
This commit is contained in:
Jan Eitzinger 2023-06-15 10:50:21 +02:00 committed by GitHub
commit ce199bf320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 7 deletions

View File

@ -2,7 +2,7 @@ TARGET = ./cc-backend
VAR = ./var VAR = ./var
CFG = config.json .env CFG = config.json .env
FRONTEND = ./web/frontend FRONTEND = ./web/frontend
VERSION = 1 VERSION = 1.0.0
GIT_HASH := $(shell git rev-parse --short HEAD || echo 'development') GIT_HASH := $(shell git rev-parse --short HEAD || echo 'development')
CURRENT_TIME = $(shell date +"%Y-%m-%d:T%H:%M:%S") CURRENT_TIME = $(shell date +"%Y-%m-%d:T%H:%M:%S")
LD_FLAGS = '-s -X main.buildTime=${CURRENT_TIME} -X main.version=${VERSION} -X main.hash=${GIT_HASH}' LD_FLAGS = '-s -X main.buildTime=${CURRENT_TIME} -X main.version=${VERSION} -X main.hash=${GIT_HASH}'

27
ReleaseNotes.md Normal file
View File

@ -0,0 +1,27 @@
# `cc-backend` version 1.0.0
Supports job archive version 1 and database version 4.
This is the initial release of `cc-backend`, the API backend and frontend
implementation of ClusterCockpit.
**Breaking changes**
The aggregate job statistic core hours is now computed using the job table
column `num_hwthreads`. In a the future release this column will be renamed to
`num_cores`. For correct display of core hours `num_hwthreads` must be correctly
filled on job start. If your existing jobs do not provide the correct value in
this column then you can set this with one SQL INSERT statement. This only applies
if you have exclusive jobs, only. Please be aware that we treat this column as
it is the number of cores. In case you have SMT enabled and `num_hwthreads`
is not the number of cores the core hours will be too high by a factor!
**Features**
* Supports user roles admin, support, manager, user, and api.
* Unified search bar supports job id, job name, project id, user name, and name
* Performance improvements for sqlite db backend
* Extended REST api supports to query job metrics
* Better support for shared jobs
* More flexible metric list configuration
* Versioning and migration for database and job archive

View File

@ -32,7 +32,7 @@ import (
) )
// @title ClusterCockpit REST API // @title ClusterCockpit REST API
// @version 1 // @version 1.0.0
// @description API for batch job control. // @description API for batch job control.
// @tag.name Job API // @tag.name Job API

View File

@ -58,11 +58,15 @@ const (
var metricScopeGranularity map[MetricScope]int = map[MetricScope]int{ var metricScopeGranularity map[MetricScope]int = map[MetricScope]int{
MetricScopeNode: 10, MetricScopeNode: 10,
MetricScopeSocket: 5, MetricScopeSocket: 5,
MetricScopeMemoryDomain: 3, MetricScopeMemoryDomain: 4,
MetricScopeCore: 2, MetricScopeCore: 3,
MetricScopeHWThread: 1, MetricScopeHWThread: 2,
/* Special-Case Accelerator
MetricScopeAccelerator: 5, // Special/Randomly choosen * -> No conversion possible if native scope is HWTHREAD
* -> Therefore needs to be less than HWTREAD, else max() would return unhandled case
* -> If nativeScope is accelerator, accelerator metrics return correctly
*/
MetricScopeAccelerator: 1,
MetricScopeInvalid: -1, MetricScopeInvalid: -1,
} }