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
| const MY_STICKERS = [ | |
| "http://example.com/sticker1.png", | |
| "http://example.com/sticker2.png", | |
| "http://example.com/sticker3.png", | |
| ]; | |
| // This will return one element per sticker. | |
| function getStickerFromMessage(stickers, content) { | |
| for (const sticker of stickers) { | |
| if (content.includes(sticker)) { |
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
| apiVersion: extensions/v1beta1 | |
| kind: DaemonSet | |
| metadata: | |
| name: pokemon | |
| spec: | |
| template: | |
| metadata: | |
| labels: | |
| app: pokemon | |
| spec: |
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
| May 28 16:46:53.577 INFO Syncing 1 blocks from Ethereum., code: BlockIngestionStatus, network_name: mainnet, blocks_needed: 1, blocks_behind: 1, latest_block_head: 7849181, current_block_head: 7849180 | |
| May 28 16:46:55.096 WARN Possible contention in tokio threadpool, code: TokioContention, timeout_ms: 1 | |
| May 28 16:46:57.397 INFO Syncing 1 blocks from Ethereum., code: BlockIngestionStatus, network_name: mainnet, blocks_needed: 1, blocks_behind: 1, latest_block_head: 7849182, current_block_head: 7849181 | |
| May 28 16:47:11.574 WARN Possible contention in tokio threadpool, code: TokioContention, timeout_ms: 1 | |
| May 28 16:47:14.063 INFO Syncing 1 blocks from Ethereum., code: BlockIngestionStatus, network_name: mainnet, blocks_needed: 1, blocks_behind: 1, latest_block_head: 7849183, current_block_head: 7849182 | |
| May 28 16:47:19.144 INFO Syncing 1 blocks from Ethereum., code: BlockIngestionStatus, network_name: mainnet, blocks_needed: 1, blocks_behind: 1, latest_block_head: 7849184, current_block_head: 7849183 | |
| May 28 16:47:3 |
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
| May 28 21:20:32.796 INFO Graph Node version: v0.12.0 (85b9ec73a 2019-05-16) | |
| May 28 21:20:32.797 DEBG Setting up Sentry | |
| May 28 21:20:32.797 INFO Starting up | |
| May 28 21:20:32.797 INFO Trying IPFS node at: http://ipfs.default.svc.cluster.local/ | |
| May 28 21:20:32.823 INFO Connecting to Ethereum..., node: http://[redacted livepeer internal]/, network: mainnet | |
| May 28 21:20:32.835 INFO Successfully connected to IPFS node at: http://ipfs.default.svc.cluster.local/ | |
| May 28 21:20:32.886 INFO Connected to Ethereum, node: http://[redacted livepeer internal]/, network: mainnet | |
| May 28 21:20:32.886 INFO Connecting to Postgres, url: postgresql://postgres:HIDDEN_PASSWORD@127.0.0.1:5432/subgraph | |
| component: Store | |
| May 28 21:20:32.887 ERRO Postgres connection error, error: could not connect to server: Connection refused |
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
| May 28 21:27:00.564 INFO Graph Node version: v0.12.0 (85b9ec73a 2019-05-16) | |
| May 28 21:27:00.574 DEBG Setting up Sentry | |
| May 28 21:27:00.574 INFO Starting up | |
| May 28 21:27:00.574 INFO Trying IPFS node at: http://ipfs.default.svc.cluster.local/ | |
| May 28 21:27:00.611 INFO Connecting to Ethereum..., node: http://[redacted livepeer internal]:8545/, network: mainnet | |
| May 28 21:27:00.611 TRCE Run with retry: net_version RPC call | |
| May 28 21:27:00.612 TRCE Run with retry: eth_getBlockByNumber(0, false) RPC call | |
| May 28 21:27:00.621 INFO Successfully connected to IPFS node at: http://ipfs.default.svc.cluster.local/ | |
| May 28 21:27:00.675 INFO Connected to Ethereum, node: http://[redacted livepeer internal]:8545/, network: mainnet | |
| May 28 21:27:00.675 INFO Connecting to Postgres, url: postgresql://postgres:HIDDEN_PASSWORD@127.0.0.1:5432/subgraph |
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
| May 28 23:31:20.092 TRCE BlockIngestor::do_poll | |
| May 28 23:31:20.097 TRCE Run with retry: eth_getBlockByNumber(latest) RPC call | |
| May 28 23:31:45.453 WARN Possible contention in tokio threadpool, code: TokioContention, timeout_ms: 1 | |
| May 28 23:31:50.071 WARN Possible contention in tokio threadpool, code: TokioContention, timeout_ms: 1 | |
| May 28 23:32:06.432 WARN Possible contention in tokio threadpool, code: TokioContention, timeout_ms: 1 | |
| May 28 23:32:20.099 DEBG Trying again after eth_getBlockByNumber(latest) RPC call timed out (attempt #2) | |
| May 28 23:32:20.145 INFO Syncing 33 blocks from Ethereum., code: BlockIngestionLagging, network_name: mainnet, blocks_needed: 33, blocks_behind: 33, latest_block_head: 7850993, current_block_head: 7850960 | |
| May 28 23:32:20.145 TRCE Run with retry: batch eth_getTransactionReceipt RPC call | |
| May 28 23:32:20.210 TRCE Run with retry: eth_getBlockByHash RPC call | |
| May 28 23:32:20.210 TRCE Run with retry: eth_getBlockByHash RPC call |
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
| > ./livepeer-linux-amd64/livepeer -broadcaster -orchAddr 127.0.0.1:8935 -cliAddr 127.0.0.1:7777 -httpAddr 127.0.0.1:8937 -rtmpAddr 127.0.1:4935 -v 9 2>&1 | tee broadcaster.log | |
| I0529 23:08:26.372790 25221 livepeer.go:158] ***Livepeer is running on the offchain*** network | |
| I0529 23:08:26.373633 25221 db.go:206] Initialized DB node | |
| I0529 23:08:26.373666 25221 livepeer.go:247] ***Livepeer is in off-chain mode*** | |
| I0529 23:08:26.373690 25221 livepeer.go:487] ***Livepeer Running in Broadcaster Mode*** | |
| I0529 23:08:26.373696 25221 livepeer.go:488] Video Ingest Endpoint - rtmp://127.0.0.1:4935 | |
| I0529 23:08:26.373757 25221 webserver.go:65] CLI server listening on 127.0.0.1:7777 | |
| I0529 23:08:26.373738 25221 mediaserver.go:118] Transcode Job Type: [{P240p30fps16x9 600k 30 426x240 16:9} {P360p30fps16x9 1200k 30 640x360 16:9}] | |
| I0529 23:08:26.373793 25221 lpms.go:99] HTTP Server listening on http://127.0.0.1:8937 | |
| I0529 23:08:26.373820 25221 lpms.go:92] LPMS Server listening on rtmp://127.0.0.1:4935 |
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
| ./lpms-bench hls/bbb.m3u8 foo 10 100 P720p30fps16x9,P576p30fps16x9,P360p30fps16x9,P240p30fps16x9 nv 0,1,2,3,4,5,6,7,8,9 | tee ~/gpu.log |
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
| #!/bin/bash | |
| nums="0 1 2 3 4 5 6 7 8 9" | |
| for x in $nums; do | |
| mkdir -p ~/ramdisk/bench-$x/out | |
| cd ~/ramdisk/bench-$x | |
| ~/ramdisk/lpms-bench ~/ramdisk/hls/bbb.m3u8 output 1 100 P720p30fps16x9,P576p30fps16x9,P360p30fps16x9,P240p30fps16x9 nv $x & | |
| done | |
| wait |
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
| Source /home/livepeer/ramdisk/hls/bbb.m3u8 segments 100 concurrency 1 | |
| time,stream,segment,length | |
| Source /home/livepeer/ramdisk/hls/bbb.m3u8 segments 100 concurrency 1 | |
| time,stream,segment,length | |
| Source /home/livepeer/ramdisk/hls/bbb.m3u8 segments 100 concurrency 1 | |
| time,stream,segment,length | |
| Source /home/livepeer/ramdisk/hls/bbb.m3u8 segments 100 concurrency 1 | |
| time,stream,segment,length | |
| Source /home/livepeer/ramdisk/hls/bbb.m3u8 segments 100 concurrency 1 | |
| time,stream,segment,length |