Skip to content

Commit

Permalink
Arreglada una cagada que he metido en el compose
Browse files Browse the repository at this point in the history
  • Loading branch information
blazaid committed Feb 20, 2024
1 parent 576bccc commit 2903237
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,6 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.idea/

tmp
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"markdown.marp.themes": ["https://etsisi.github.io/Styles/marp-slides.css"],
"markdown.marp.themes": ["Slides/styles/bbdd.css"],
"markdown.marp.enableHtml": true,
}
6 changes: 3 additions & 3 deletions Exercises/cassandra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ Query Language).
3. **Creación de una tabla**: Crea una tabla `estudiantes` con campos
para el `id` del estudiante, `nombre`, `edad` y `carrera`.

## 3: Inserción y consulta de datos
## 3. Inserción y consulta de datos

1. **Carga de datos**: Carga los datos relativos a los estudiantes en la
tabla `estudiantes`.
2. **Consulta de datos**: Realiza una consulta para verificar que la
inserción se realizó correctamente.

## 4: Actualización y borrado de datos
## 4. Actualización y borrado de datos

1. **Actualización de datos**: Actualiza la edad de un estudiante.
2. **Borrado de datos**: Elimina un registro de estudiante.

## 5: Limpieza y finalización
## 5. Limpieza y finalización

1. **Borrado de la tabla**. Elimina la tabla `estudiantes`.
2. **Borrado del _keyspace_**. Elimina el keyspace `bbdd2`.
6 changes: 3 additions & 3 deletions Exercises/cassandra/cluster/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ services:
- ./tmp/cassandra1:/var/lib/cassandra
#- ./etc/cassandra1:/etc/cassandra
environment: &environment
CASSANDRA_SEEDS: cass1,cass2
CASSANDRA_SEEDS: cassandra1,cassandra2
CASSANDRA_CLUSTER_NAME: Virgo
CASSANDRA_DC: MilkyWay
CASSANDRA_RACK: R1
CASSANDRA_ENDPOINT_SNITCH: GossipingPropertyFileSnitch
CASSANDRA_NUM_TOKENS: 128
MAX_HEAP_SIZE: 256M
HEAP_NEWSIZE: 128M
MAX_HEAP_SIZE: 128M
HEAP_NEWSIZE: 64M
node2:
image: cassandra:5.0
container_name: cassandra2
Expand Down
4 changes: 2 additions & 2 deletions Slides/4.4. CQL.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,10 @@ Si tuviera dos centros de datos: _data1_ y _data2_, se crearían 3 réplicas en
```sql
CREATE KEYSPACE ventas
WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor' : 3, 'data2': 2};
WITH replication = {'class': 'data1', 'replication_factor' : 3, 'data2': 2};
```
Si se ejecuta `DESCRIBE KEYSPACE ventas;` se puede observar que _data1_ tendrá un valor de 3 y _data2_ un valor de 2
`DESCRIBE KEYSPACE ventas;` muestra que la replicación de _data1_ es 3 y de _data2_ es 2
**CUIDADO**: Crear un factor de replicación mayor al número de nodos provoca un aviso
Expand Down

0 comments on commit 2903237

Please sign in to comment.