This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
// A new Arcade is online. | |
// Let's see who can win over 200 PRIZE tokens. | |
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; | |
import {ERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
import {Base} from "./Base.sol"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(*rpc.GetTransactionResult)(0x140015774c0)({ | |
Slot: (uint64) 118840773, | |
BlockTime: (*solana.UnixTimeSeconds)(0x1400155d030)(2022-02-01 20:25:15 +0800 PST), | |
Transaction: (*rpc.TransactionResultEnvelope)(0x14001e2d770)({ | |
asDecodedBinary: (solana.Data) ASghLH0effaYLFiLPuhxMzNFHekTO6e5u5aCfSwXNXHWVe00LE53s1zPzCGLJEo95VyIiIYqjc3TR2SqQHSdLgcBAAQOsPHZECZxPFX4JvWPnqd4tLiWfv78Wq69jQmzOg0ijb7Z7v+uqaZbepHdTghQMC93fbltJBHPJFPKJTFnrOevik0mvLEf6NmljplWKhNcX2mw9b7DQbo7ZSa4T0ylnAtxQURXj0DBzpwh3bSg4kmn9oIUfdJ2XgKG6BukqGMRTXX5thn1rsGPiml43SFo2j1UmdraV2VFyr77njNZFp5ltupbzg43BN93AJGjrx9SchK66KLcMd3daNmy8LUEe7jUsBuf+j7j12H5D18IXTppGJx0Af6aWdrjgVUTbZoGmkZfvcdCp3vqt+1gZ9QKZtwme+W7/9WYWBlLnnhuwemNGLQ1m9375BRyPV98ZqeY6ZuEFhCRBe4ZMNAsi31hmL6LUI2StcLLLoeZvEZ99CM7YYohl4l+FFpddyh7S1kP8tEG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqQan1RcZLFxRIYzJTD1K8X9Y2u4Im6H9ROPb2YoAAAAAup2hghyJKzc7fg2L6njnH1VOcWmKKR/LKjh0BmZMypqFDy1uAqR6+CTQmradxC1wyyjL+iSft+5XudJWwSdi7wTwtFYZIhC2N3wdVuZ+OonNS0My4Sxwcd+iqeWawuCUAQ0NAQIDBAUGBwAICQoLDDMACgAAAAEAAAD+i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ export MALLOC_ARENA_MAX=2 | |
+ MALLOC_ARENA_MAX=2 | |
+ JAVA_OPTS=' -Dlog4j2.configurationFile=file:/opt/strimzi/custom-config/log4j2.properties -Dvertx.cacheDirBase=/tmp -Djava.security.egd=file:/dev/./urandom' | |
++ get_gc_opts | |
++ '[' '' == true ']' | |
++ echo '' | |
+ JAVA_OPTS=' -Dlog4j2.configurationFile=file:/opt/strimzi/custom-config/log4j2.properties -Dvertx.cacheDirBase=/tmp -Djava.security.egd=file:/dev/./urandom ' | |
++ sed -E -n 's/.* version "([0-9]*).*$/\1/p' | |
++ java -version | |
+ JAVA_MAJOR_VERSION=11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2021-12-08 00:39:15 INFO PodOperator:65 - Rolling update of staging/analytics-zookeeper: Rolling pod analytics-zookeeper-1 | |
2021-12-08 00:39:20 INFO AbstractOperator:455 - Reconciliation #220(timer) Kafka(prod/analytics): reconciled | |
2021-12-08 00:39:21 WARN AbstractOperator:377 - Reconciliation #218(timer) Kafka(staging/analytics): Failed to acquire lock lock::staging::Kafka::analytics within 10000ms. | |
2021-12-08 00:40:07 INFO KafkaRoller:500 - Reconciliation #214(timer) Kafka(staging/analytics): Pod 0 needs to be restarted. Reason: [server certificates changed] | |
2021-12-08 00:40:08 INFO PodOperator:65 - Rolling update of staging/analytics-kafka: Rolling pod analytics-kafka-0 | |
2021-12-08 00:40:56 INFO KafkaRoller:500 - Reconciliation #214(timer) Kafka(staging/analytics): Pod 1 needs to be restarted. Reason: [server certificates changed] | |
2021-12-08 00:40:56 INFO KafkaRoller:294 - Reconciliation #214(timer) Kafka(staging/analytics): Could not roll pod 1 due to io.strimzi.operator.cluster.operator.resource.Ka |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select schemaname,relname,seq_scan,idx_scan,seq_tup_read,idx_tup_fetch | |
from pg_stat_user_tables | |
order by coalesce(seq_scan,0)+coalesce(idx_scan,0)+coalesce(seq_tup_read,0)+coalesce(idx_tup_fetch,0) desc | |
limit 50; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"gameCreation":1586860954611, | |
"gameDuration":1307, | |
"gameId":4530462094, | |
"gameMode":"CLASSIC", | |
"gameType":"MATCHED_GAME", | |
"gameVersion":"10.7.314.9802", | |
"mapId":11, | |
"participantIdentities":[{"participantId":1,"player":{"accountId":"U2m86VQ8NGiyrc_Vl5InlZFVgiMsEcZKSsvtzxUqozqaUv4","currentAccountId":"U2m86VQ8NGiyrc_Vl5InlZFVgiMsEcZKSsvtzxUqozqaUv4","currentPlatformId":"EUW1","matchHistoryUri":"/v1/stats/player_history/EUW1/237192597","platformId":"EUW1","profileIcon":3221,"summonerId":"cuMBXhxU44-HbrMqQnXUKOFLV2EUUwAhZnlA1RvThvQAvGNY","summonerName":"KolosalusLive"}},{"participantId":2,"player":{"accountId":"fWFAXSEfKWcYPH6q7D-_W8dgCo-F9lhnecEd9iEYMmZ1mWk","currentAccountId":"fWFAXSEfKWcYPH6q7D-_W8dgCo-F9lhnecEd9iEYMmZ1mWk","currentPlatformId":"EUW1","matchHistoryUri":"/v1/stats/player_history/EUW1/205587791","platformId":"EUW1","profileIcon":4225,"summonerId":"FA3tyYuiJvFtekExgL5MKqgI9q1ehqFvRx3_Ht44yT5mqOg","summonerName":"Craxsh"}},{"participantId":3,"player":{"accountId":"RgDX5gFdV4jsCGn8Zf7i0MJeblop8ab06 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
marshaling error: read_simple_bytes - not enough bytes (requested 18446744073709551615, got 0) Backtrace: 0x2cf30ad | |
0xa7725e | |
0x44b0d9 | |
0x4de18c | |
0x1383736 | |
0x13838f8 | |
0x1093535 | |
0x107b41b | |
0x1626a97 | |
0x1201e10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Logs begin at Mon 2020-04-27 11:24:23 UTC, end at Wed 2020-04-29 05:59:01 UTC. -- | |
Apr 29 02:44:31 scylla-league-001 scylla[1592]: [shard 10] large_data - Writing large cell league_stats/champion_stats_aggregate_fixed: GOLD:10.8:76JUNGLE data (1112227 bytes) | |
Apr 29 02:44:31 scylla-league-001 scylla[1592]: [shard 10] large_data - Writing large cell league_stats/champion_stats_aggregate_fixed: PLATINUM:10.8:86TOP data (3092144 bytes) | |
Apr 29 02:44:31 scylla-league-001 scylla[1592]: [shard 10] large_data - Writing large cell league_stats/champion_stats_aggregate_fixed: GOLD:10.8:9JUNGLE data (2472416 bytes) | |
Apr 29 02:44:31 scylla-league-001 scylla[1592]: [shard 10] large_data - Writing large cell league_stats/champion_stats_aggregate_fixed: GOLD:10.8:9SUPPORT data (1562444 bytes) | |
Apr 29 02:44:31 scylla-league-001 scylla[1592]: [shard 10] large_data - Writing large cell league_stats/champion_stats_aggregate_fixed: SILVER:10.8:12SUPPORT data (3279738 bytes) | |
Apr 29 02:44:31 scylla-league-001 scylla[1592]: [s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mar 20 07:17:51 scylla-league-001 scylla-manager-agent[16262]: STARTUP ERROR: no connection to Scylla API, make sure that Scylla server is running and api_address and api_port are set correctly in config file /etc/scylla-manager-agent/scylla-manager-agent.yaml: giving up after 60 attempts: dial tcp 0.0.0.0:10000: connect: connection refused | |
Mar 20 07:17:51 scylla-league-001 systemd[1]: scylla-manager-agent.service: Main process exited, code=exited, status=1/FAILURE | |
Mar 20 07:17:51 scylla-league-001 systemd[1]: scylla-manager-agent.service: Unit entered failed state. | |
Mar 20 07:17:51 scylla-league-001 systemd[1]: scylla-manager-agent.service: Failed with result 'exit-code'. | |
Mar 20 07:17:52 scylla-league-001 systemd[1]: scylla-manager-agent.service: Service hold-off time over, scheduling restart. | |
Mar 20 07:17:52 scylla-league-001 systemd[1]: Stopped Scylla Manager Agent. | |
Mar 20 07:17:52 scylla-league-001 systemd[1]: Started Scylla Manager Agent. | |
Mar 20 07:17:52 scylla-league-001 scylla-manager-agent[16308]: {"L" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix call timeouts in rate_limit_pool | |
- https://github.com/gjaldon/reproduce_call_timeouts | |
- run `iex -S mix` and do `Reproduce.Application.test()` | |
- check number of messages in queue with `Reproduce.Application.message_queue_len()` | |
Takeaways: | |
- Not an issue with poolboy (the checkout genserver call has very little overhead) or Redis | |
- since Redis is not the bottleneck, the number of connections is not an issue | |
- even with though the handle_call only takes 2ms to ‘execute’, sending 20K calls to the GenServer still leads to timeouts. (I got 2ms from running `:timer.tc fn -> RateLimit.fetch_riot_key(url, config) end)` in prod) | |
- you can try it with less GenServer calls and see the minimum number so get timeouts |
NewerOlder