vault backup: 2024-10-07 14:43:40

This commit is contained in:
zleyyij 2024-10-07 14:43:40 -06:00
parent 5c6fb3911e
commit 287a95e479
2 changed files with 15 additions and 0 deletions

View File

@ -25,6 +25,11 @@ Running a task is generally done by:
1. *Define a job specification for your task(s):* it'll contain info like where the workload artifact is located, ports used by the service, the number of instances desired, and more. 1. *Define a job specification for your task(s):* it'll contain info like where the workload artifact is located, ports used by the service, the number of instances desired, and more.
2. *Deploying the job*: The jobspec is submitted to Nomad and it schedules an allocation for the job on one or more clients. 2. *Deploying the job*: The jobspec is submitted to Nomad and it schedules an allocation for the job on one or more clients.
3. Updating and redploying the job. 3. Updating and redploying the job.
# Deployment
## Installing the CLI
https://developer.hashicorp.com/nomad/tutorials/get-started/gs-install#install-the-nomad-cli
# Resources # Resources
- https://developer.hashicorp.com/nomad/tutorials/get-started/gs-overview - https://developer.hashicorp.com/nomad/tutorials/get-started/gs-overview
- https://developer.hashicorp.com/nomad/docs/drivers - https://developer.hashicorp.com/nomad/docs/drivers

View File

@ -38,6 +38,16 @@ In C, a `char` denotes a single byte of arbitrary encoding.
## Variables ## Variables
A variable must be declared before it is assigned. A variable must be declared before it is assigned.
## Arrays
### Finding the size of an array
```c
int arr[10];
// The size of an array can be found by
// determining the number of bytes allocated total and dividing that by the size of each element in the array.
int arr_size = sizeof(arr) / sizeof(arr[0]);
```
# Formatting specifiers # Formatting specifiers
# Standard library # Standard library